Getting the text under cursor with QScintilla
With QPlainTextEdit, I could get the text under cursor easily, like this:
textCursor = self.textCursor() textCursor.select(QTextCursor.WordUnderCursor) text = textCursor.selectedText()
But QScintilla doesn't have a self.textCursor() method so what is the solution?
I looked through the docs but nothing catched my eye
That's question better asked on the Riverbank dedicated mailing list as it's their product.
If someone is wondering how it's done, it's this easy: