Quote Originally Posted by wysota View Post
The text cursor is usually positioned somewhere in the text of QTextDocument. You can move it anywhere you want and you can query for the block it is in.
OK, so if I have the position of the cursor I can get the block the cursor is in, but the problem is now: how can I get the current cursor position?