<?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[Connect QMenuBar to various windows]]></title><description><![CDATA[<p dir="auto">Hello all,</p>
<p dir="auto">I didn't figure out how to enable the main Menu from all the windows shown.<br />
I mean:</p>
<p dir="auto">I have my mainWindow. If I create and show a new QObject as a new Window, in Linux I cannot select the menu when the new Window is Active.<br />
Is it just my problem or has someone experienced it? I would like to be able to select the menu from all the windows opened.</p>
<p dir="auto">Luca</p>
]]></description><link>https://forum.qt.io/topic/41860/connect-qmenubar-to-various-windows</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 20:36:58 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/41860.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 26 May 2014 18:13:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Connect QMenuBar to various windows on Tue, 27 May 2014 21:42:53 GMT]]></title><description><![CDATA[<p dir="auto">You are only moving the mainMenu from one widget to another, not copying it (your can't copy QObject derived class by the way)</p>
]]></description><link>https://forum.qt.io/post/230109</link><guid isPermaLink="true">https://forum.qt.io/post/230109</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 27 May 2014 21:42:53 GMT</pubDate></item><item><title><![CDATA[Reply to Connect QMenuBar to various windows on Mon, 26 May 2014 21:58:05 GMT]]></title><description><![CDATA[<p dir="auto">Hi..</p>
<p dir="auto">I tried to make a newBar and to add it to the Layout of the new Widget:</p>
<p dir="auto">QMenuBar *newMenu = mainMenu (previously created)<br />
QWidget *newWindow = new QWidget()<br />
QLayout newLayout = ....<br />
newLayout.add(newMenu)<br />
newWindow.setLayout<br />
newWindow.show</p>
<p dir="auto">more or less this is the synthesis.<br />
The problem is that this is doubling the Menu the first time it executes.<br />
Also, the action shortcuts are inherited by the new window.<br />
On the opposite, the shortcuts don't work any more in the mainWindow.</p>
<p dir="auto">I think that the major problem is still the doubling of the menu at the first execution.<br />
Can you tell me if I did right?</p>
]]></description><link>https://forum.qt.io/post/229939</link><guid isPermaLink="true">https://forum.qt.io/post/229939</guid><dc:creator><![CDATA[lucadanieli]]></dc:creator><pubDate>Mon, 26 May 2014 21:58:05 GMT</pubDate></item><item><title><![CDATA[Reply to Connect QMenuBar to various windows on Mon, 26 May 2014 21:27:47 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">did you set a QMenuBar on your new widget ?</p>
]]></description><link>https://forum.qt.io/post/229932</link><guid isPermaLink="true">https://forum.qt.io/post/229932</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 26 May 2014 21:27:47 GMT</pubDate></item></channel></rss>