Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.2.0, 5.2.1, 5.3.1
-
None
-
e7da97bf71108a0acd72629e383f884e2d756477
Description
Steps to reproduce:
1. Type something in the second field.
2. Click in the first field; both the first and the third fields will have activeFocus and will be blinking.
import QtQuick 2.2 import QtQuick.Controls 1.2 import QtQuick.Layouts 1.1 Rectangle { width: 400 height: 400 FocusScope { anchors.fill: parent TextField { onEditingFinished: organizationEdit.focus = true onActiveFocusChanged: { print("name field active focus =", activeFocus, ", focus = ", focus); print("org field active focus =", organizationEdit.activeFocus, ", focus = ", organizationEdit.focus); print("address field active focus =", addressEdit.activeFocus, ", focus = ", addressEdit.focus); } y: 100 } TextField { id: organizationEdit onEditingFinished: addressEdit.focus = true y: 200 } TextField { id: addressEdit y: 300 } } }
Attachments
For Gerrit Dashboard: QTBUG-40145 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
105682,9 | QQuickWindow: Only send focus events to items that actually gain focus | 5.6 | qt/qtdeclarative | Status: MERGED | -2 | 0 |
181849,4 | QQuickWindow: Only send focus events to items that actually gain focus | tqtc/vxworks-5.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |