comp • gb.qt4 • textarea • pos

TextArea.Pos (gb.qt4)

Property Pos As Integer

Returns or sets the cursor position, in characters from the beginning of the text.

As the text is stored in UTF-8, you must use the String class to convert this position to the byte index in the string.