Results 1 to 3 of 3

Thread: how exclusive toolbutton in toolbar

  1. #1
    Join Date
    Jan 2008
    Posts
    8
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Wink how exclusive toolbutton in toolbar

    Hi,
    My problem is to set up toolbuttons as exlusive in the toolbar for my application. I know that I can make this with QAction objects(and with help of setMenu() ).

    I can't use buttongroup class, because it does not inherit from QWidget but QObject.
    But I want to use QToolButton as exclusive button instead of QAction.
    Regards
    Thanks in advance

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how exclusive toolbutton in toolbar

    Did you have alook at QActionGroup ??

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

    irmakci (30th July 2008)

  4. #3
    Join Date
    Jan 2008
    Posts
    8
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how exclusive toolbutton in toolbar

    yes. I think I will use qaction. But I want to say exactly, I also want to use a QToolButton as QAction. And in some way, QButton Group like QActionGroup.
    Thanks

Similar Threads

  1. unable to hide combobox or spinbox in toolbar
    By Sandip in forum Qt Programming
    Replies: 1
    Last Post: 22nd July 2008, 11:52
  2. 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.