Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.7.3
-
None
-
63b4e11 354e285209531da86166d94ae5b0fbf749decbcd (qt/tqtc-qtdeclarative/5.12.0)
Description
In the documentation of QML's TextInput it says about the selectionStart property:
"The cursor position before the first character in the current selection. Setting this and selectionEnd allows you to specify a selection in the text edit."
This is wrong, as both the selectionStart and selectionEnd properties are read-only and can thus not be set. You have to use the select() method to set the selection.
The same error exists in the documentation of the selectionEnd property.