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

QAction tooltip does not show up when containing QMenu is torn off

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.10, 6.2.2
    • GUI: Menus
    • None
    • Linux/X11

    Description

      I have attached some sample code based off the Menus example (https://doc.qt.io/qt-5/qtwidgets-mainwindows-menus-example.html, https://code.qt.io/cgit/qt/qtbase.git/tree/examples/widgets/mainwindows/menus?h=5.15), and cut it down. I have a menu containing a menu with a single action (Edit > Format > Bold). The Format menu can be torn off (with setTearOffEnabled), the Format menu has tooltips set to be visible, and the Bold action has a tooltip set ("bold").

      If I navigate in the menu and hover the mouse over the Bold action / menu item, I see the tooltip. If I then tear off the Format menu so that it is in its own window, hovering over the Bold action in the torn off menu does NOT show the tooltip.

      I would expect the tooltips to show on menu items whether or not the menu is torn off.

      (pretty sure I'm compiling with Qt 5.10)

      Attachments

        1. mainwindow.cpp
          2 kB
        2. mainwindow.h
          0.5 kB
        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
            chris857 chris857
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes