6 : QStackedWidget(parent),
11 m_type(
Module::LeftToRight)
13 m_animation =
new QPropertyAnimation(
this, {},
this);
32 QPainter painter(
this);
33 painter.setRenderHint(QPainter::SmoothPixmapTransform);
39 QWidget::paintEvent(event);
46 QPixmap pix(w->size());
47 pix.fill(Qt::transparent);
48 w->setAttribute(Qt::WA_TranslucentBackground,
true);
50 w->setAttribute(Qt::WA_TranslucentBackground,
false);
61 painter->drawPixmap(0, 0, pix);
67 QPixmap pix(w->size());
68 pix.fill(Qt::transparent);
69 w->setAttribute(Qt::WA_TranslucentBackground,
true);
71 w->setAttribute(Qt::WA_TranslucentBackground,
false);
104 const int offsetx = frameRect().width();
105 const int offsety = frameRect().height();
106 w->setGeometry(0, 0, offsetx, offsety);
108 currentWidget()->hide();