Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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.

    Thanks!


  • 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.

    Thanks!


Log in to reply