Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-8190

'#ifdef Q_WS_S60 w.showMaximized()' <- sucks

    XMLWordPrintable

Details

    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)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            portale Alessandro Portale
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes