Results 1 to 10 of 10

Thread: One popup menu added to few tool buttons

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: One popup menu added to few tool buttons

    You could even use the enum value as the id.

    Cheers,
    _

  2. #2
    Join Date
    Jan 2014
    Posts
    76
    Thanks
    17
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: One popup menu added to few tool buttons

    In QButtonGroup instead int?
    But then this must be simple enum not enum class to provide conversion between string and int.
    Is this what you mean?

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: One popup menu added to few tool buttons

    Yes. Would remove the necessity of a switch, the int would be the value you are looking for.

    Cheers,
    _

  4. The following user says thank you to anda_skoa for this useful post:

    atomic (13th August 2014)

Similar Threads

  1. Replies: 5
    Last Post: 29th November 2012, 15:26
  2. Replies: 2
    Last Post: 28th September 2012, 17:15
  3. Replies: 3
    Last Post: 17th May 2009, 20:17
  4. Grouping of Tool buttons in Tool bar
    By febil in forum Qt Programming
    Replies: 1
    Last Post: 24th March 2009, 11:51
  5. Tool Buttons...
    By csvivek in forum Qt Tools
    Replies: 1
    Last Post: 9th May 2008, 07:44

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
  •  
Qt is a trademark of The Qt Company.