Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
4.6.2
-
None
Description
For small screen situations (mobile devices) we usually want maximized or full screen windows. On the Desktop we do not want that.
Currently, we force every cross device application to contain this snippet:
MyMainWindow w; #ifndef Q_WS_S60 w.show(); #else w.showMaximized(); #endif
WinCE would automatically maximize the dialog when show() is called. No idea what Maemo would do.
This is definitely against Qts own guidelines.
It really hurts me to type that for each small example application The application wizards of QtCreator do not generate this code, which is maybe a good thing.
I see two possible solutions:
- Introduce a new WidgetAttribute for auto maximization. Each platform may then have that attribute set by default or not. (Mobile devices may have it set)
- Introduce a define like Q_SMALLSCRFEEN which is set for Symbian/WinCE/Maemo.
(I prefer the first one)