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

QC1 Menu breaks activeFocus in QQuickWidget

    XMLWordPrintable

Details

    • Windows

    Description

      When a Quick Controls 1 Menu is opened inside of a QQuickWidget, the focus will be changed to an non-existent item (0x0). It then cannot be changed back, breaking QML focus handling.

      It works correctly when run inside a QQmlApplicationEngine.

      I've tested Qt 5.9.5 and 5.12 Beta, and the issue is present in both.

      See the attached project for a MWE. Switch focus between the rectangles by clicking on them, trigger the menu by rightclicking the first one. Afterwards, switching focus doesn't work anymore, and neither does capturing keyboard events.

      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
              VersalEszett Julius Bullinger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes