Results 1 to 2 of 2

Thread: Enable/Disable a set of QActions displayed within a toolbar

  1. #1
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    80
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Enable/Disable a set of QActions displayed within a toolbar

    I am looking for a way to enable/disable a set of QActions displayed within a toolbar independently from their individual enable status i.e. if I disable the set of QActions everything has to be grayed out and if I enable the set of QActions every individual QAction has to be displayed grayed or not depending on it enabled status.

    I was thinking to group the QActions within a QHBoxLayout and to use QHBoxLayout::setEnabled, but a QAction cannot be added to a QHBoxLayout.

  2. #2
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    80
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Enable/Disable a set of QActions displayed within a toolbar

    I guess QActionGroup is what I was looking for.

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.