<?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[QToolbar in QMainWidnow problem]]></title><description><![CDATA[<p dir="auto">Hello my dear friends!</p>
<p dir="auto">I want to have QToolbar on main window. He should not be dockable, should be movable and after app start should be in postion 0.0.</p>
<p dir="auto">If i add toolbar like this:<br />
addToolBar(m_pToolBar );</p>
<p dir="auto">On start app this is docked but shouldnt</p>
<p dir="auto">I try this one:<br />
m_pToolBar-&gt;setAllowedAreas( Qt::NoToolBarArea );<br />
addToolBar( Qt::ToolBarArea::NoToolBarArea,m_pToolBar );</p>
<p dir="auto">Now toolbar disapear. It isnt drawing.</p>
<p dir="auto">I force draw by setVisible but it make another window ...</p>
<p dir="auto">Any idea?</p>
]]></description><link>https://forum.qt.io/topic/50770/qtoolbar-in-qmainwidnow-problem</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 05:54:34 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/50770.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 Feb 2015 11:02:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QToolbar in QMainWidnow problem on Wed, 10 Jul 2019 05:20:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/poonury">@<bdi>poonury</bdi></a> I have tried this and its working fine , but when the main window is resized the floating toolbar position is not getting adjusted to new size</p>
]]></description><link>https://forum.qt.io/post/540030</link><guid isPermaLink="true">https://forum.qt.io/post/540030</guid><dc:creator><![CDATA[Vamsi Krishna Gali]]></dc:creator><pubDate>Wed, 10 Jul 2019 05:20:33 GMT</pubDate></item><item><title><![CDATA[Reply to QToolbar in QMainWidnow problem on Thu, 05 Feb 2015 12:09:46 GMT]]></title><description><![CDATA[<p dir="auto">Wow this is magic... I set this falg in constructor and all was bad... Today I set this flag after add toolabr to MainWindow and work perfect...</p>
<p dir="auto">Thanks Alex ;)</p>
]]></description><link>https://forum.qt.io/post/260468</link><guid isPermaLink="true">https://forum.qt.io/post/260468</guid><dc:creator><![CDATA[poonury]]></dc:creator><pubDate>Thu, 05 Feb 2015 12:09:46 GMT</pubDate></item><item><title><![CDATA[Reply to QToolbar in QMainWidnow problem on Thu, 05 Feb 2015 01:24:41 GMT]]></title><description><![CDATA[<p dir="auto">Sorry working with multiple qt versions and was tired.</p>
<p dir="auto">I am not sure about Qt 5, but on Qt 4<br />
undocking is equivalent of changing window flags.</p>
<p dir="auto">Example below works on my computer.<br />
you will have to test it on QT 5:</p>
<p dir="auto">@ ui.toolBarFiles-&gt;setWindowFlags(Qt::Window | Qt::FramelessWindowHint);<br />
ui.toolBarFiles-&gt;show();<br />
ui.toolBarFiles-&gt;move(10,10);@</p>
<p dir="auto">doing this after toolbar is created will show it in undocked state.</p>
]]></description><link>https://forum.qt.io/post/260431</link><guid isPermaLink="true">https://forum.qt.io/post/260431</guid><dc:creator><![CDATA[alex_malyu]]></dc:creator><pubDate>Thu, 05 Feb 2015 01:24:41 GMT</pubDate></item><item><title><![CDATA[Reply to QToolbar in QMainWidnow problem on Wed, 04 Feb 2015 07:22:10 GMT]]></title><description><![CDATA[<p dir="auto">Alex:</p>
<p dir="auto">This constructor was in QT 3.x. I use QT 5.3.1 and there is not present.</p>
<p dir="auto">SGaist:<br />
I looking in source cpp and:<br />
addToolBar( Qt::ToolBarArea::NoToolBarArea,m_pToolBar );<br />
addToolBar function doesnt work because of NoToolBarArea parameter. I should use here one of 4 sides... When toolbar is docked and i undock him everything is perfect but i want to default this toolbar will be undock and here is problem.</p>
<p dir="auto">If you know some function that will move toolbar from dock to position x,y ( move(x,y) doesnt work ) or i dont know ...</p>
]]></description><link>https://forum.qt.io/post/260296</link><guid isPermaLink="true">https://forum.qt.io/post/260296</guid><dc:creator><![CDATA[poonury]]></dc:creator><pubDate>Wed, 04 Feb 2015 07:22:10 GMT</pubDate></item><item><title><![CDATA[Reply to QToolbar in QMainWidnow problem on Wed, 04 Feb 2015 02:36:12 GMT]]></title><description><![CDATA[<p dir="auto">QToolBar::QToolBar ( const QString &amp; label, QMainWindow * mainWindow, QWidget * parent, bool newLine = FALSE, const char * name = 0, WFlags f = 0 )</p>
<p dir="auto">Constructs an empty horizontal toolbar.<br />
The toolbar is called name and is a child of parent and is managed by mainWindow. The label and newLine parameters are passed straight to QMainWindow::addDockWindow(). name and the widget flags f are passed on to the QDockWindow constructor.</p>
<p dir="auto">Use this constructor if you want to create torn-off (undocked, floating) toolbars or toolbars in the status bar.</p>
<p dir="auto">Does above help?<br />
Alex</p>
]]></description><link>https://forum.qt.io/post/260285</link><guid isPermaLink="true">https://forum.qt.io/post/260285</guid><dc:creator><![CDATA[alex_malyu]]></dc:creator><pubDate>Wed, 04 Feb 2015 02:36:12 GMT</pubDate></item><item><title><![CDATA[Reply to QToolbar in QMainWidnow problem on Tue, 03 Feb 2015 23:22:19 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">By default the QToolBar is floatable so you should be able to move it around already.</p>
<p dir="auto">As for the current code, you are explicitly telling Qt that your m_pToolBar is not allowed to dock</p>
]]></description><link>https://forum.qt.io/post/260273</link><guid isPermaLink="true">https://forum.qt.io/post/260273</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 03 Feb 2015 23:22:19 GMT</pubDate></item><item><title><![CDATA[Reply to QToolbar in QMainWidnow problem on Tue, 03 Feb 2015 09:59:47 GMT]]></title><description><![CDATA[<p dir="auto">The same problem with QDockWidget</p>
]]></description><link>https://forum.qt.io/post/260192</link><guid isPermaLink="true">https://forum.qt.io/post/260192</guid><dc:creator><![CDATA[poonury]]></dc:creator><pubDate>Tue, 03 Feb 2015 09:59:47 GMT</pubDate></item></channel></rss>