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

Tooltips for QMenu items aren't shown

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P5: Not important
    • Resolution: Invalid
    • Affects Version/s: 5.15.0
    • Fix Version/s: None
    • Component/s: GUI: Menus
    • Labels:
      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

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            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