When the user scrolls in a QTextBrowser
in my application, I want to retrieve the position in the document that they've scrolled to (offset in the document, not the GUI position.)
If I can make the cursor jump to that location, I can get QTextCursor.position()
. But I don't see a way to make the cursor jump to the visible location in the browser. The cursor stays where it is when I scroll.