Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
6.8.0, 6.8.1
Description
When using `nextItemInFocusChain().forceActiveFocus()` to automatically move to the next TextField in the chain the cursor still appears at the previous TextField. It did not happen on 6.7.2.
I have also uploaded a short video which shows what is happening.
Here is a short code snippet that reproduces the bug:
import QtQuick import QtQuick.Controls Window { width: 640 height: 480 visible: true title: qsTr("Hello World") GridView { anchors.centerIn: parent id: grid width: 500 height: 500 cellHeight: height / 3 cellWidth: width / 3 interactive: false model: 9 delegate: Rectangle { width: grid.cellWidth height: grid.cellHeight color: "#D3D3D3" border.color: "black" TextField { anchors.centerIn: parent maximumLength: 1 color: "black" font.pixelSize: 26 onTextChanged: { if (text.length === 1) { nextItemInFocusChain().forceActiveFocus() } } background: Rectangle { color: "transparent" } } } } }