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

Here’s my menu creation process,
Qt Code:
  1. void MyMainWindow::createMenus()
  2. {
  3. fileMenu = menuBar()->addMenu(tr("&File"));
  4. fileMenu->addAction(openFileAct);
  5. fileMenu->addAction(openUriAct);
  7. fileMenu->addSeparator();
  8. fileMenu->addAction(exitAct);
  10. menuBar()->addSeparator();
  12. helpMenu = menuBar()->addMenu(tr("&Help"));
  13. helpMenu->addAction(aboutAct);
  14. }
To copy to clipboard, switch view to plain text mode 

I knew there’s subtle difference for QMenuBar between CE and Desktop,
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.
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.

Any suggestion?