Keyboard shortcuts in a tooltip

  • Is there a way to automatically display keyboard shortcuts in the tooltip for QAction, similar to how Creator does it? I guess that I can write my own class deriving from QAction, but then it would not be possible to use it in the Designer's action editor.


  • Moderators

    Which tool tip are you referring to in Creator? We have a couple of those;)

  • Hi, I meant like the Run and Start Debugging buttons. They show a nice looking gray keyboard shortcut after the main tooltip text. I was wondering if that's something that can be configured for any widget, or it's hardcoded into the tooltips in the creator.


Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.