<?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[Dynamically Setting the Tools in a ToolBar]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I am developing a mobile app for iOS and I need to be able to have the tools in the toolbar change depending on which page you are on. I found some documentation on how to accomplish this but it looks like it is out of date and the components and methods needed to accomplish this no longer exist.</p>
<p dir="auto">This is the document I found: <a href="https://doc.qt.io/archives/qtquick-components-symbian-1.1/qml-toolbar.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/archives/qtquick-components-symbian-1.1/qml-toolbar.html</a></p>
<p dir="auto">It mentions using the following Components and Methods that seem to be  gone now in QT 5.7:</p>
<p dir="auto">ToolBarLayout<br />
PageStack<br />
setTools() method.</p>
<p dir="auto">Is there a newer way of acomplishing dynamic tools in a ToolBar?</p>
<p dir="auto">Thanks for any help on this,</p>
<p dir="auto">-Tavis</p>
]]></description><link>https://forum.qt.io/topic/72109/dynamically-setting-the-tools-in-a-toolbar</link><generator>RSS for Node</generator><lastBuildDate>Mon, 04 May 2026 00:46:01 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/72109.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 08 Oct 2016 22:10:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dynamically Setting the Tools in a ToolBar on Mon, 10 Oct 2016 21:33:50 GMT]]></title><description><![CDATA[<p dir="auto">This too seems like a regular "State-Transition" problem?</p>
<p dir="auto">In one state you want to handle toolbar x, and in another state you want to handle toolbar y?</p>
<p dir="auto">See documentation about states and transitions.</p>
]]></description><link>https://forum.qt.io/post/353064</link><guid isPermaLink="true">https://forum.qt.io/post/353064</guid><dc:creator><![CDATA[peteritv]]></dc:creator><pubDate>Mon, 10 Oct 2016 21:33:50 GMT</pubDate></item><item><title><![CDATA[Reply to Dynamically Setting the Tools in a ToolBar on Mon, 10 Oct 2016 20:33:27 GMT]]></title><description><![CDATA[<p dir="auto">@Wieland I do that now with StackViews and I have multiple toolbars. I was trying to get away from having multiple toolbars inside of each StackView and put one ToolBar in the main window and then have the controls in the toolbar change dynamically depending on which StackView you are in.</p>
<p dir="auto">I guess the only way is to make my own toolbar and methods to change the visibility of the buttons per page I am on.</p>
]]></description><link>https://forum.qt.io/post/353054</link><guid isPermaLink="true">https://forum.qt.io/post/353054</guid><dc:creator><![CDATA[Tavis]]></dc:creator><pubDate>Mon, 10 Oct 2016 20:33:27 GMT</pubDate></item><item><title><![CDATA[Reply to Dynamically Setting the Tools in a ToolBar on Sun, 09 Oct 2016 13:09:36 GMT]]></title><description><![CDATA[<p dir="auto">Hi! There are many ways to do that. But as you said your application uses multiple pages than you can simply use the <a href="http://doc.qt.io/qt-5/qml-qtquick-controls2-page.html" target="_blank" rel="noopener noreferrer nofollow ugc">Page QML Type</a> which has a property <code>header</code>. So each page can have its own ToolBar assigned to header.</p>
]]></description><link>https://forum.qt.io/post/352840</link><guid isPermaLink="true">https://forum.qt.io/post/352840</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 09 Oct 2016 13:09:36 GMT</pubDate></item></channel></rss>