<?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[ActionGroup and Toolbar]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I create some QActions like this:</p>
<pre><code>QActionGroup ag(this);
QAction* a = new QAction( ... );

a-&gt;setCheckable(true);
ag-&gt;addAction(a);

QAction* b = new QAction( ... );
b-&gt;setCheckable(true);
ag-&gt;addAction(b);

...
</code></pre>
<p dir="auto">later on I create toolbars, where I add those actions</p>
<pre><code>QToolBar* tb = new QToolBar("check", this);

tb-&gt;addAction(a);
tb-&gt;addAction(b);
</code></pre>
<p dir="auto">but when I switch a toolbarbutton, nothing happens to respect of group behaviour of the other button.</p>
<p dir="auto">Am I missing something, or are QActionGroup not intended to work with toolbars?</p>
]]></description><link>https://forum.qt.io/topic/131766/actiongroup-and-toolbar</link><generator>RSS for Node</generator><lastBuildDate>Sun, 16 Aug 2026 22:50:52 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/131766.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 07 Nov 2021 08:43:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ActionGroup and Toolbar on Sun, 07 Nov 2021 12:42:17 GMT]]></title><description><![CDATA[<p dir="auto">Thanks a lot! That did the trick.<br />
Interesting! Wasn't aware of that difference.</p>
]]></description><link>https://forum.qt.io/post/688879</link><guid isPermaLink="true">https://forum.qt.io/post/688879</guid><dc:creator><![CDATA[django.Reinhard]]></dc:creator><pubDate>Sun, 07 Nov 2021 12:42:17 GMT</pubDate></item><item><title><![CDATA[Reply to ActionGroup and Toolbar on Sun, 07 Nov 2021 09:00:10 GMT]]></title><description><![CDATA[<p dir="auto">@django-Reinhard Change to <code>QActionGroup *ag = new QActionGroup(this);</code></p>
]]></description><link>https://forum.qt.io/post/688847</link><guid isPermaLink="true">https://forum.qt.io/post/688847</guid><dc:creator><![CDATA[eyllanesc]]></dc:creator><pubDate>Sun, 07 Nov 2021 09:00:10 GMT</pubDate></item></channel></rss>