<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QMenuBar didn&#x27;t show up on Windows Mobile 6]]></title><description><![CDATA[<p dir="auto">I'm using a WM Emulator.<br />
The code worked perfectly on Window Desktop, but I missed menu bar of main window when I ported it to WM.</p>
<p dir="auto">Here's my menu creation process,<br />
@<br />
void MyMainWindow::createMenus()<br />
{<br />
fileMenu = menuBar()-&gt;addMenu(tr("&amp;File"));<br />
fileMenu-&gt;addAction(openFileAct);<br />
fileMenu-&gt;addAction(openUriAct);</p>
<pre><code>fileMenu-&gt;addSeparator();
fileMenu-&gt;addAction(exitAct);

menuBar()-&gt;addSeparator();

helpMenu = menuBar()-&gt;addMenu(tr("&amp;Help"));
helpMenu-&gt;addAction(aboutAct);
</code></pre>
<p dir="auto">}<br />
@</p>
<p dir="auto">I knew there's subtle difference for QMenuBar between CE and Desktop,<br />
[quote]<br />
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.<br />
[/quote]</p>
<p dir="auto">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.<br />
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.</p>
<p dir="auto">Any suggestion?</p>
]]></description><link>https://forum.qt.io/topic/3901/qmenubar-didn-t-show-up-on-windows-mobile-6</link><generator>RSS for Node</generator><lastBuildDate>Sun, 03 May 2026 07:19:23 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/3901.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 22 Feb 2011 03:30:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QMenuBar didn&#x27;t show up on Windows Mobile 6 on Tue, 22 Feb 2011 09:03:39 GMT]]></title><description><![CDATA[<p dir="auto">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.</p>
]]></description><link>https://forum.qt.io/post/77483</link><guid isPermaLink="true">https://forum.qt.io/post/77483</guid><dc:creator><![CDATA[fifth]]></dc:creator><pubDate>Tue, 22 Feb 2011 09:03:39 GMT</pubDate></item></channel></rss>