6 : QStackedWidget(parent),
11 m_type(
Module::LeftToRight)
13 m_animation =
new QPropertyAnimation(
this, {},
this);
32 QPainter painter(
this);
38 QWidget::paintEvent(event);
45 QPixmap pix(w->size());
46 pix.fill(Qt::transparent);
47 w->setAttribute(Qt::WA_TranslucentBackground,
true);
49 w->setAttribute(Qt::WA_TranslucentBackground,
false);
64 QPixmap pix(w->size());
65 pix.fill(Qt::transparent);
66 w->setAttribute(Qt::WA_TranslucentBackground,
true);
68 w->setAttribute(Qt::WA_TranslucentBackground,
false);
75 painter->drawPixmap(0, -height() / 2, pix);
81 painter->drawPixmap(0, height() / 2, pix);
87 painter->drawPixmap(-width() / 2, 0, pix);
93 painter->drawPixmap(width() / 2, 0, pix);
116 const int offsetx = frameRect().width();
117 const int offsety = frameRect().height();
118 w->setGeometry(0, 0, offsetx, offsety);
120 currentWidget()->hide();