9 QGridLayout *layout =
new QGridLayout(
this);
10 layout->setContentsMargins(0, 0, 0, 0);
12 QLabel *uploadFileIcon =
new QLabel(
this);
13 uploadFileIcon->setPixmap(QPixmap(
":/tiny/btn_open_file"));
15 uploadFile->setText(tr(
"Open File"));
20 QLabel *uploadDirIcon =
new QLabel(
this);
21 uploadDirIcon->setPixmap(QPixmap(
":/tiny/btn_open_files"));
23 uploadDir->setText(tr(
"Open Dir"));
28 layout->addWidget(uploadFileIcon, 0, 0, Qt::AlignRight);
29 layout->addWidget(uploadFile, 0, 1, Qt::AlignLeft);
30 layout->addWidget(uploadDirIcon, 1, 0, Qt::AlignRight);
31 layout->addWidget(uploadDir, 1, 1, Qt::AlignLeft);
39 const int x = (w - width() - 60) / 2;
40 const int y = (h - height()) / 2;
The class of the label widget that can click.
static const QString ColorStyle02