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. Hiding without disabling the shortcut of a QAction in one QMenu but not the other

Hiding without disabling the shortcut of a QAction in one QMenu but not the other

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 636 Views
  • 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.
  • D Offline
    D Offline
    DerekDomino
    wrote on last edited by
    #1

    Hello,

    I have a serie of QAction's. The whole serie is added in two separate menus. One of this menu is part of an always on top window. So, when the application looses focus but still sits on top of everything, shortcuts are of course non-working.

    To avoid confusion, I would like to hide the shortcuts of this serie of QAction's in this menu (dropdown of a QToolButton) but not the other.

    Do you know how to do that without having to duplicate the actions and without having to rewire all the action's signals/slots twice?

    Thanks

    1 Reply Last reply
    0

    • Login

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