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

Assert when using QMenu in a QPushButton (iOS)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4
    • None
    • iOS/tvOS/watchOS

    Description

      It seems a QPushButton which has QMenu asserts on iPad Pro 10.5" (15.4.1).
      This is with reasonably new Qt 6 dev.

      I originally noted this when running the Qt NFC example application (ndefeditor) on iPad,
      but the issue reproduces with a simple reproducer:

          auto button = new QPushButton("button", this);
          auto menu = new QMenu(this);
          menu->addAction("action", [](){});
          button->setMenu(menu);
          setCentralWidget(button);
      

      The menu may open a few times, but ultimately clicking it produces an assert:

      ASSERT: "!m_activeTouches.contains(touch.hash)" in file qtbase/src/plugins/platforms/ios/quiview.mm, line 490
      

      Attachments

        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
            vuokko Juha Vuolle
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes