Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15, 6.2, 6.5, 6.7, 6.8, 6.9
-
None
-
-
def4f827d (dev), a46cb99c6 (6.9), 873fa9cc8 (6.8)
Description
The following code leads to no window being shown
#include <QApplication> #include <QWidget> #include <QWindow> int main(int argc, char *argv[]) { QApplication app(argc, argv); QWidget widget; widget.resize(0, 0); widget.createWinId(); widget.windowHandle()->destroy(); widget.resize(100, 100); widget.show(); return app.exec(); }
It seems it's because Qt::WA_OutsideWSRange gets set in QWidget::create but doesn't get unset in QWidget::destroy
Attachments
Issue Links
- resulted in
-
QTBUG-134012 Effect of setting Qt::WA_OutsideWSRange on Wayland changed in recent Qt versions
-
- Reported
-
For Gerrit Dashboard: QTBUG-129698 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
595987,3 | widget: clear WA_OutsideWSRange when needed in QWidgetPrivate::create() | dev | qt/qtbase | Status: MERGED | +2 | 0 |
617559,2 | widget: clear WA_OutsideWSRange when needed in QWidgetPrivate::create() | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
617640,2 | widget: clear WA_OutsideWSRange when needed in QWidgetPrivate::create() | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |