I have a QTextEdit, and in it I want to determine the first and last selected block in the selection associated with the cursor returned by QTextEdit::textCursor().

So far I don’t see anything in the API that lets me do this.

Thanks.