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

QToolButton menu placed differently if signal aboutToShow has client

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 5.12.5, 5.13.1
    • 4.8.6, 4.8.x, 5.8
    • None
    • Linux CentOS 6.x.
    • a78d66743171557d79b16c08be775e3ac15bb4ef (qt/qtbase/5.15)

    Description

      When the signal aboutToShow of a menu associated to a QToolButton has registered receivers, the popup menu is not placed at the same place than when there is no receivers.

      With receivers, the menu popups just bellow the mouse, which selects the action at cursor position. The menu then disappears when the mouse button is released. The menu is then very difficult to use.

      Without receivers, the menu does not appear under the mouse cursor and is not closed when the mouse button is released.

      The code in QToolButtonPrivate::popupTimerDone() uses a different size hint if signal aboutToShow has receivers or not.

      Attachments

        Issue Links

          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
              nicob Nicolas Deherly
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes