Get caret position as QPoint?

Baz Walter bazwal at gmail.com
Sat Dec 4 14:16:46 GMT 2021


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


More information about the QScintilla mailing list