I have a QTextEdit and the user writes some text in it. How can I get the lines exactly the same way as they are displayed on the screen? I have to get every line start and line end - if possible the absolute text position *and* the y position of the line.

Thanks for any help!
Claudio