4 #include <QPropertyAnimation>
10 m_widgetLayout(nullptr)
13 QVBoxLayout *mainLayout =
new QVBoxLayout(
this);
14 mainLayout->setContentsMargins(0, 0, 0, 0);
15 mainLayout->setSpacing(0);
19 setLayout(mainLayout);
60 connect(
m_animation, SIGNAL(finished()), parent, SLOT(updateAnimationLrc()));
118 QPainter painter(
this);
120 pix.fill(Qt::transparent);
121 m_mainWidget->setAttribute(Qt::WA_TranslucentBackground,
true);
123 m_mainWidget->setAttribute(Qt::WA_TranslucentBackground,
false);
126 painter.drawPixmap(0, 0, pix);
127 painter.drawPixmap(0, height(), pix);
131 QWidget::paintEvent(event);
162 QPainter painter(
this);
164 pix.fill(Qt::transparent);
165 m_mainWidget->setAttribute(Qt::WA_TranslucentBackground,
true);
167 m_mainWidget->setAttribute(Qt::WA_TranslucentBackground,
false);
170 painter.drawPixmap(0, 0, pix);
171 painter.drawPixmap(width(), 0, pix);
175 QWidget::paintEvent(event);