Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
5.0.1
-
None
-
Windows 7 SP1 , 64bit, Visual Studio 2010 Professional, Qt 5.0.1 for msvc2010
Description
The method QWidget:isMaximized() does not work as expected.
QWidget:isMaximized() seems to return the inverted result. A maximized widget (e.g. a QMainWindow) returns false and a minimized one true.
To illustrate this behaviour a QtCreator project is attached. The project consists of a simple QMainWindow overriding the resizeEvent method as follows:
maximized.cpp
void Maximized::resizeEvent(QResizeEvent * resizeEvent) { const QString max = isMaximized() ? "true" : "false"; ui.label_max->setText(QString("maximized: %1").arg(max)); }
The resize event sets one label's text inside the widget presenting the current result of isMaximized(). By compiling and executing this project you can see a maximized widget will result in false and a minimized in true.
Attachments
Issue Links
- replaces
-
QTBUG-37401 QMdiSubWindow::isMaximized() answers false while resizing
- Closed