As the docs say:Originally Posted by Sarma
You must first translate your mouse position (which is in vieport coordinates) to contents coordinates. Use QScrollView::viewportToContents() method.int QTextEdit::paragraphAt ( const QPoint & pos ) const
Returns the paragraph which is at position pos (in contents coordinates).
Bookmarks