Qt 4.4.0
Has only 2 methods to set position of cursor. With moveOperation = moveAnchor and keepAnchor.
If need to select text - use keep anchor. If use moveAnchor selection is cleared (is bad, selection must be stayed while user begin selected other section - all GUI linux editors problem).
Now i cannot store cursor position after selecting. Cursor may be only at end of selecting text or begin. For exampe, in KDevelop if select all - cursor not moved, if use QTextEdit - cursor move to end of text.
It's impossible ? I wanted to select text and dont move cursor from initial position and i dont know how to do it.