On 04/12/2021 11:16, Matic Kukovec wrote:
Is it possible to get the caret position as a QPoint?
Use the low-level SendScintilla API:
https://www.riverbankcomputing.com/static/Docs/QScintilla/classQsciScintillaBase.html#a8820ab8d7563bd7ed24ce6384846079e
Then you can get the x, y with:
https://www.scintilla.org/ScintillaDoc.html#SCI_POINTXFROMPOSITION
https://www.scintilla.org/ScintillaDoc.html#SCI_POINTYFROMPOSITION
