Hello,

Let's say I have QTextEdit with one paragraph (block) of text, but since I turned on text wrapping I have several lines (visually).

Now, how to retrieve line X from QTextEdit? Of course I know, that if I resized QTextEdit the result will be different, but it is not the problem.

I only came up with idea fiddling with QTextCursor, and going that way to line X, and line X+1 and this way extracting the needed portion of the text. But maybe there is already the easier way.

have a nice day, bye