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

Focus 'flickers' inside FocusScope element.

    XMLWordPrintable

Details

    Description

      Attached two QML files that depicts what behavior we are observing and what we are really expecting to get.

      In the focusToggled.qml file, there is a rectangle inside FocusScope. When we run this example and press enter, we will see how root loses the focus and gets it back. See the console output.

      In the second focusNotToggled.qml file, we have two rectangles. you can change the focus between them using arrow keys. Observe the console, root does not loose its focus. As in the first case, we use forceActiveFocus() to set the focus inside FocusScope. But, in the first case it does not work how it should.

      The root element should not lose focus (and gain focus unnecessarily) in the focusToggled.qml file.

      Attachments

        1. focusNotToggled.qml
          1 kB
        2. focustest_v1.zip
          17 kB
        3. focusToggled.qml
          0.9 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            aalpert Alan Alpert
            leonlee Leonard Lee
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes