Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Windows Mobile 5 - Maximized window
Forum Updated to NodeBB v4.3 + New Features

Windows Mobile 5 - Maximized window

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ryggxg
    wrote on last edited by
    #1

    Hello,

    I started to develop application for win mobile 5 using QT 4.8.2. I am able to compile and run application but it is not maximized. I tried to set different flags and window states. Fullscreen is working as expected but maximizing isn't. The only option which works is to set flags Qt::Window | Qt::FramelessWindowHint. But in this case there is no application menu and close button does not work.

    Thanks

    1 Reply Last reply
    0
    • R Offline
      R Offline
      ryggxg
      wrote on last edited by
      #2

      So I found the problem. I have to set window state after showing application (showMaximized somehow resets window state).

      Application is not maximized:
      @
      int main(int argc, char *argv[]) {
      QApplication a(argc, argv);
      HelloWorldApp w;
      w.setWindowState(Qt::WindowMaximized);
      w.showMaximized();
      return a.exec();
      }
      @

      Application is maximized:
      @
      int main(int argc, char *argv[]) {
      QApplication a(argc, argv);
      HelloWorldApp w;
      w.showMaximized();
      w.setWindowState(Qt::WindowMaximized);
      return a.exec();
      }
      @

      After executing showMaximized windowState is 0 and isMaximized is false.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved