Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Exclusive Toolbar Buttons
Qt 6.11 is out! See what's new in the release blog

Exclusive Toolbar Buttons

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.1k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    qtoptus
    wrote on last edited by
    #1

    How can I make a toolbar button added to an action group uncheck itself when it's clicked again?

    Thanks.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      You can turn it off with
      http://doc.qt.io/qt-5/qactiongroup.html#exclusive-prop
      for the group.

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qtoptus
        wrote on last edited by
        #3

        This will disable the exclusive check of the buttons. I want to keep this while being able to uncheck all the buttons by clicking the checked button.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          Something's not clear. In your scenario you have a checkable button in an exclusive group box that is checked and when you click on it again to make it unchecked, you want all other buttons to become also unchecked ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved