[Interest] QActionGroup vs QButtonGroup

Sensei senseiwa at gmail.com
Tue Mar 12 15:58:09 CET 2013


On 3/11/13 3:37 PM, Bill Crocker wrote:
> On 03/11/2013 10:06 AM, Sensei wrote:
>> On 3/11/13 12:47 PM, Bill Crocker wrote:
>>> Wow. A non QML posting. How refreshing.
>>>
>>> Did you remember to add "/images/console.png" etc. to
>>> your resources file?
>>
>
> Ah yes.
>
> I use a QActionGroup when I need this behavior.
> - Create QActionGroup.
> - Set all actions checkable
> - Add actions to group.
> - Add actions to toolbar as before.


Ok, but adding buttons should work anyway, and it works in a different 
widget (outside a qmainwindow).

Why?



More information about the Interest mailing list