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

QPushButton menu is not shown on first button press, but appears on subsequent presses

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.15.10
    • GUI: Window management
    • None
    • Mac OS 12.5.1, Qt Creator 8.0.0, iOS 15.5
    • iOS/tvOS/watchOS

      Our application uses a subclass of QDialog with the WindowStaysOnTopHint flag set.

      QPushButtons within the dialog do not behave correctly. The first button press depresses the button but the menu does not appear. The menu appears correctly on subsequent presses.

      This only happens on iOS. The same code works correctly on macOS and Windows.

      I have attached a simple example project that illustrates the issue. It also shows that the problem occurs in a QMainWindow subclass.

      I think it's possibly caused by the incorrect window level being set for the menu's underlying QUIView.

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

            vestbo Tor Arne Vestbø
            g.westlake Graham Westlake
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes