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);
37 QWidget *backgroundMask =
new QWidget(
this);
38 backgroundMask->setGeometry(4, 29, 360, 90);
41 QLabel *topTitleName =
new QLabel(
this);
42 topTitleName->setText(tr(
"Progress Bar"));
43 topTitleName->setGeometry(14, 4, 221, 25);
46 QToolButton *topTitleCloseButton =
new QToolButton(
this);
47 topTitleCloseButton->setGeometry(344, 6, 20, 20);
48 topTitleCloseButton->setIcon(QIcon(
":/functions/btn_close_hover"));
50 topTitleCloseButton->setEnabled(
false);
68 QDialog::resizeEvent(event);
74 QDialog::paintEvent(event);
75 QPainter painter(
this);
98 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
#define TTK_ERROR_STREAM(msg)