Function EditWidgetBase.caretPos

returns caret position

TextPosition caretPos() @property;