Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-13663

QMenus should allow tooltips

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 5.1.0
    • 4.6.2
    • Widgets: Main Window
    • None
    • Windows/Linux

    • efbecc1a94250e6fc55b3c31bab18819d2a07ccf

    Description

      Currently, Qt doesn't directly support tooltips being shown for QMenu objects. Tooltips in menu options are commonly useful in "Recent Files" menus, where users are often presented with a list of Recent Files with a tooltip describing each file's full path.

      This request is closely related to QTBUG-2362 – but maybe it's better suited as a "Suggestion" than a "Bug"? That bug was closed on the reasoning that it would typically be annoying to present tooltips in a menu since the tooltip would just echo the action label. However, I think this concern could be addressed by making the default behavior for a QMenu be to not show tooltips and to require an explicit request by the programmer to show tooltips.

      I was able work around this limitation by using the QMenu's hovered signal to change the menu's tooltip each time a different action is hovered over, but this seems like something that could be directly supported in Qt.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            pvalle Peter Valle
            Votes:
            5 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes