Remove Qt::WA_OutsideWSRange flag even if the widget is not yet visible.
Show the widget when its initial size is 0 and the layout changes the size during showing. Task-number: QTBUG-51788 Change-Id: I3251ac27328f9715ff13d96e1b82fbf824d9e79d Reviewed-by: Dmitry Shachnev <mitya57@gmail.com> Reviewed-by: Shawn Rutledge <shawn.rutledge@theqtcompany.com>
This commit is contained in:
parent
c4886ca427
commit
11836be127
@ -7216,7 +7216,7 @@ void QWidgetPrivate::setGeometry_sys(int x, int y, int w, int h, bool isMove)
|
||||
if (q->isVisible())
|
||||
hide_sys();
|
||||
data.crect = QRect(x, y, w, h);
|
||||
} else if (q->isVisible() && q->testAttribute(Qt::WA_OutsideWSRange)) {
|
||||
} else if (q->testAttribute(Qt::WA_OutsideWSRange)) {
|
||||
q->setAttribute(Qt::WA_OutsideWSRange, false);
|
||||
needsShow = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user