Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
4.7.2
-
Symbian
-
3060da958981af8074ac68e47c30c519ff60eec9
Description
QMainWindow width() and height() return full screen pixel values (360x640) when having window chrome like status pane and command buttons (cba) visible instead of removing the chrome from the sizes. A window with status pane and cba is presented using showMaximized() on main window or then with showFullScreen() and setWindowFlags(Qt::WindowSoftkeysVisibleHint).
However, Qt's Window Geometry documentation explain that width and height should not include the window frame geometry:
http://doc.qt.nokia.com/latest/application-windows.html#window-geometry
Qt Simulator with Symbian^3 returns width and height for QMainWindow with status pane and cba visible as 360x487. Which seems to be correct (height = display's height - status pane - cba).