-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.12.2
-
None
When the signal handler of editingFinished changes the focus, by e.g. showing a warning dialog, the signal editingFinished is emitted twice, even though the value of text did not change.
This is a regression from Qt 5.11.x to Qt 5.12.x
import QtQuick 2.11 import emptyTest 1.0 Item { id: root width: Constants.width height: Constants.height TextInput { id: textEdit x: 129 y: 102 width: 80 height: 20 text: qsTr("Text Edit") font.pixelSize: 12 onEditingFinished: { print("finished") element.text = text textEdit2.focus = true } } Text { id: element x: 129 y: 159 text: qsTr("Text") font.pixelSize: 12 } TextInput { id: textEdit2 x: 395 y: 96 width: 80 height: 20 text: qsTr("Text Edit") font.pixelSize: 12 } }
This is a small example that reproduces the issue. Setting the focus emits a second editingFinished, even though the value of text did not change.