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

Problem with FocusScope and activeFocus since Qt 4.8.2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.8.x
    • 4.8.2
    • None
    • Linux Desktop

      We have a problem that appeared with the correction in QDeclarativeItem::hasActiveFocus() in 4.8.2 release.

      The documentation http://qt-project.org/doc/qt-4.8/qdeclarativefocus.html states that: “Both the focus scope and the sub-focused item will have activeFocus property set.”

      Here is an example (two files) to illustrate the incorrect behavior. The grey enclosing box doesn’t show ‘activeFocus=true’ at any time in 4.8.2 and 4.8.3, as it did before.

        1. ListView_FocusScope.qml
          2 kB
          Loic Martin
        2. test.qml
          0.5 kB
          Loic Martin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            bibr Andreas Aardal Hanssen
            apap_ Loic Martin
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes