10 : QProgressDialog(parent)
13 setWindowFlags(Qt::Window | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
14 setWindowModality(Qt::ApplicationModal);
15 setAttribute(Qt::WA_TranslucentBackground);
17 setCancelButton(
nullptr);
19 setFixedSize(368, 123);
20 setMinimumDuration(2);
36 QWidget *backgroundMask =
new QWidget(
this);
37 backgroundMask->setGeometry(4, 29, 360, 90);
40 QLabel *topTitleName =
new QLabel(
this);
41 topTitleName->setText(tr(
"Progress Bar"));
42 topTitleName->setGeometry(14, 4, 221, 25);
45 QToolButton *topTitleCloseButton =
new QToolButton(
this);
46 topTitleCloseButton->setGeometry(344, 6, 20, 20);
47 topTitleCloseButton->setIcon(QIcon(
":/functions/btn_close_hover"));
49 topTitleCloseButton->setEnabled(
false);
67 QDialog::resizeEvent(event);
73 QDialog::paintEvent(event);
74 QPainter painter(
this);
89 QProgressDialog::show();
static const QString ColorStyle06
TTK_MODULE_EXPORT void setBorderShadow(QWidget *widget, QPainter *painter)
static const QString ProgressBar01
ProgressBar.
static const QString FontStyle01
Font.
The class of the skin backgroud image.
static const QString BackgroundStyle11
static const QString ToolButtonStyle04