Details
-
Suggestion
-
Resolution: Duplicate
-
P4: Low
-
None
-
4.7.3
-
None
Description
If you run the code sample, you'll see that the cursor is blinking at the
end of the TextInput and this is wrong, because only 6 symbols filled.
If you swap two lines of code in the Component.onCompleted handler, the
cursor will be blinking at the very beginning of the TextInput, which is wrong
too.
import QtQuick 1.0 Item { width: 500 height: 500 Column { FocusScope { TextInput { id: input height: 20 width: 100 focus: true cursorVisible: true } } } Component.onCompleted: { input.inputMask = "+7 (999) 999-99-99;*"; input.text = "800123"; } }