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

Endless loop when setting Qml Item's focus (with minimal testcase)

    XMLWordPrintable

Details

    • d6e19d1ecd9f8a26bbd2c3f38083da98c97d599e

    Description

      Please start the application im QmlViewer.

      After the second click on "Move" the application will freeze.

      Qt will hang in QGraphicsItemPrivate::setFocusHelper because there's a circular reference between declarative items and their focus scopes.

      If the FocusScope with id f is changed to an Item, the bug disappears (however the example is a heavily stripped down version of real application where the outer FocusScope is needed).

      Attachments

        1. main_still_looping.qml
          2 kB
        2. main.qml
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            aalpert-nokia Alan Alpert (closed Nokia identity) (Inactive)
            njeisecke Nils Jeisecke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes