Results 1 to 2 of 2

Thread: Checkable and exclusive Actions (Toolbar buttons)

  1. #1
    Join Date
    Feb 2010
    Posts
    20
    Qt products
    Qt4
    Platforms
    Windows

    Default Checkable and exclusive Actions (Toolbar buttons)

    Hello...

    i created a toolbar, using two actions, that are checkable and exclusive (adding them to the same QActionGroup etc.) When the application starts, both of these toolbar buttons are unpressed. The problem is, that if you press a button it is checked, but then if you press it again, nothing happens, it doesn't go back! If i remove the exclusiveness, then buttons can be unchecked as expected.

    Is this a bug or sth?

    thansk in advance

  2. #2
    Join Date
    Feb 2010
    Posts
    20
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Checkable and exclusive Actions (Toolbar buttons)

    I removed the ActionGroup, and implemented the selection - deselection manualy. Not a big deal.

    I suppose groups are only used when one action must always be selected. Anyway...

Similar Threads

  1. Toolbar/menu actions with radio behavior?
    By brcain in forum Qt Programming
    Replies: 1
    Last Post: 15th January 2010, 22:10
  2. Get the actions from a toolbar
    By jano_alex_es in forum Newbie
    Replies: 3
    Last Post: 20th May 2009, 09:02
  3. how exclusive toolbutton in toolbar
    By irmakci in forum Qt Programming
    Replies: 2
    Last Post: 30th July 2008, 22:33
  4. Spacing widgets and actions in a toolbar
    By indifference in forum Qt Programming
    Replies: 1
    Last Post: 5th September 2007, 22:59
  5. Replies: 4
    Last Post: 19th November 2006, 20:24

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.