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

QQuickItemPrivate::nextPrevItemInTabFocusChain not terminating

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.10.0
    • None
    • [^focusbug.cpp]

      My application gets stuck in QQuickItemPrivate::nextPrevItemInTabFocusChain in certain situations, when trying to navigate along the tab focus chain. Looks like there is an non terminating pingpong between the root item and its last child.

      There might be a similar effect, when inverting the child items and navigating forwards - but I didn't check that.

      I noticed the problem with Qt 5.6 and 5.10, but I would expect to find it in all Qt5 versions.

      Attached is a minimal code snippet, that sets up such a situation. Using the debugger you can easily see what is going on.

      On my system ( X11 ) the behavior is Qt::TabFocusAllControls.

        1. focusbug.cpp
          0.8 kB
          Uwe Rathmann
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            uwe Uwe Rathmann
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes