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

QToolButton::showMenu creates a new menu if the menu is currently shown

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 4.6.3, 4.7.1
    • None

    Description

      QToolButton::showMenu() always creates and shows a menu, even if a menu is already displayed

      To reproduce :
      -> call QToolButton::showMenu() mutliple times in the same procedure
      -> then, you have to select in the menu multiple times, since multiple menus are displayed on top of each others !

      Tested with Qt 463 on the Mac and on Linux.
      Appears at least when it is the default menu, made of QToolButton::actions().

      As far as I remember, this "bug" did not exist in Qt 45*.

      Attachments

        1. bugQToolButton_16061.cpp
          3 kB
          Nicolas Castagne
        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
            castagne Nicolas Castagne
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes