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. QMenuBar didn't show up on Windows Mobile 6
Qt 6.11 is out! See what's new in the release blog

QMenuBar didn't show up on Windows Mobile 6

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 1 Posters 1.9k 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.
  • F Offline
    F Offline
    fifth
    wrote on last edited by
    #1

    I'm using a WM Emulator.
    The code worked perfectly on Window Desktop, but I missed menu bar of main window when I ported it to WM.

    Here's my menu creation process,
    @
    void MyMainWindow::createMenus()
    {
    fileMenu = menuBar()->addMenu(tr("&File"));
    fileMenu->addAction(openFileAct);
    fileMenu->addAction(openUriAct);

    fileMenu->addSeparator();
    fileMenu->addAction(exitAct);
    
    menuBar()->addSeparator();
    
    helpMenu = menuBar()->addMenu(tr("&Help"));
    helpMenu->addAction(aboutAct);
    

    }
    @

    I knew there's subtle difference for QMenuBar between CE and Desktop,
    [quote]
    QMenuBar on Windows CE is a wrapper for using the system-wide menu bar, similar to the Mac. This feature is activated for Windows Mobile and integrates QMenuBar with the native soft keys. The left soft key can be controlled with QMenuBar::setDefaultAction() and the right soft key can be used to access the menu bar.
    [/quote]

    I really suspected it's sth to do with my project configuration, since I neither created project from Qt Add-in wizard nor Qt Creator.
    I created a common CE project, and manually set up Qt-related stuff. Now looked like it can ran on emulator, showed sth, except the menubar's lost.

    Any suggestion?

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fifth
      wrote on last edited by
      #2

      Now I confirmed it had to be sth to do with project configuration. I just tested same code both on my own project and on a Qt CE application project which was created from Qt Add-in wizard, the latter worked well whereas mine failed again.

      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