Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.0.0
-
None
-
qtbase/stable (eebf42c) - X11 & Win7
-
3295378325c1b4567379d641f05e9eadea35040c
Description
Steps:
- maximize QWidget(Window)
- minimize the window
- restore the window
-> the window reports that it's still minimized
#include <QtWidgets> static QString windowStateString(Qt::WindowStates states) { QStringList str; if (states & Qt::WindowMinimized) str += "Qt::WindowMinimized"; if (states & Qt::WindowMaximized) str += "Qt::WindowMaximized"; if (states & Qt::WindowFullScreen) str += "Qt::WindowFullScreen"; if (states & Qt::WindowActive) str += "Qt::WindowActive"; if (states == Qt::WindowNoState) str += "Qt::WindowNoState"; return str.join(","); } class Window : public QWidget { protected: void changeEvent(QEvent *event) { QWidget::changeEvent(event); if (event->type() == QEvent::WindowStateChange) setWindowTitle(windowStateString(windowState())); } }; int main(int argc, char* argv[]) { QApplication app(argc, argv); Window w; w.showMaximized(); return app.exec(); }
Attachments
Issue Links
- is required for
-
QTBUG-28978 windowsvista style does not redraw animated checkboxes after minimizing, maximizing window
- Closed
For Gerrit Dashboard: QTBUG-29030 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
44378,1 | Minimized, maximized and fullscreen are mutually exclusive. | release | qt/qtbase | Status: MERGED | +2 | 0 |