Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.0.2, 5.7.1, 5.8.0
-
None
Description
Steps to reproduce:
- Run the application below.
- Delete the first TextInput's text.
- Click in the second TextInput so that the first one loses focus; the first TextInput should be set back to 0 but it remains empty.
import QtQuick 2.0 import QtQuick.Window 2.0 Window { visible: true width: 640 height: 480 title: "qtbug59153" Column { TextInput { text: "0" width: 200 height: 50 validator: IntValidator { bottom: 0 top: 1 } } TextInput { text: "0" width: 200 height: 50 } } }
This was initially observed in SpinBox from Qt Quick Controls 2, which uses TextInput as its editor, along with IntValidator.