Results 1 to 2 of 2

Thread: Toolbar/menu actions with radio behavior?

  1. #1
    Join Date
    Feb 2006
    Location
    US
    Posts
    173
    Thanks
    16
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Toolbar/menu actions with radio behavior?

    Is it possible to achieve radio button behavior for a group of actions ... for example that might be in a toolbar or menu?

    There is no autoExlusive property for an action. So how, is this achieved? Ideally, I'd like to set it in Designer.

  2. #2
    Join Date
    Nov 2009
    Posts
    129
    Thanks
    4
    Thanked 29 Times in 29 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Toolbar/menu actions with radio behavior?

    Quote Originally Posted by brcain View Post
    There is no autoExlusive property for an action. So how, is this achieved?
    I think you want a QActionGroup.

    Quote Originally Posted by brcain View Post
    Ideally, I'd like to set it in Designer.
    I think you’re stuck on that one. You can define and associate the QActions in Qt Designer, but you’ll have to insert them into a QActionGroup in code.

  3. The following user says thank you to Coises for this useful post:

    alizadeh91 (30th June 2013)

Similar Threads

  1. Adding actions to a context menu
    By aarelovich in forum Qt Programming
    Replies: 4
    Last Post: 7th December 2011, 13:47
  2. Get the actions from a toolbar
    By jano_alex_es in forum Newbie
    Replies: 3
    Last Post: 20th May 2009, 10:02
  3. Radio menu items in Designer
    By rbp in forum Qt Tools
    Replies: 0
    Last Post: 31st March 2009, 01:50
  4. Spacing widgets and actions in a toolbar
    By indifference in forum Qt Programming
    Replies: 1
    Last Post: 5th September 2007, 23:59
  5. menu actions calling a single slot
    By jayw710 in forum Qt Programming
    Replies: 2
    Last Post: 28th June 2007, 20:19

Tags for this Thread

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.