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

Tooltips for QMenu items aren't shown

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P5: Not important
    • None
    • 5.15.0
    • GUI: Menus
    • None

    Description

      When QMainWindow has a QMenuBar menu bar and items are added to it with the code like this:

      auto myMenu = menuBar.addMenu("&Item1");
      myMenu->addAction("Item2", []() {
        // some code
      })->setToolTip("The tooltip text");
      

      the tooltip is never displayed.

      I don't see any reason why menu items can't have tooltips, especially when the API allows them.

      FreeBSD 12.2

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            yurivict Yuri
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes