diff --git a/src/widgets/downloadlistwidget.cpp b/src/widgets/downloadlistwidget.cpp index 079f6e4..102e1c9 100644 --- a/src/widgets/downloadlistwidget.cpp +++ b/src/widgets/downloadlistwidget.cpp @@ -12,7 +12,8 @@ DownloadListWidget::DownloadListWidget(QWidget *parent) : this->setAttribute(Qt::WA_Hover,true); setFocus(); setFixedSize(500,400); - + ui->listWidget->hide(); + ui->widget->show(); // 计算显示下载速度 download_speed.setInterval(1000); download_speed.start(); @@ -104,6 +105,7 @@ QList DownloadListWidget::getDIList() void DownloadListWidget::startRequest(QUrl url, QString fileName) { ui->listWidget->show(); + ui->widget->hide(); isBusy = true; isdownload = true; downloaditemlist[allDownload - 1]->free = false; diff --git a/src/widgets/downloadlistwidget.ui b/src/widgets/downloadlistwidget.ui index 39fa984..16cb680 100644 --- a/src/widgets/downloadlistwidget.ui +++ b/src/widgets/downloadlistwidget.ui @@ -14,6 +14,56 @@ Form + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + 11 + + + + The list is currently empty. Go and download some softwares! + + + Qt::AlignCenter + + + false + + + + + + + Qt::Vertical + + + + 20 + 56 + + + + + + +