[QScintilla] (no subject)
Phil Thompson
phil at riverbankcomputing.com
Fri Jan 25 21:56:14 GMT 2019
On 25 Jan 2019, at 9:37 pm, royal jade <royal.jade at mail.com> wrote:
>
> Hi,
> Before switching to QScintilla, I used QPlainTextEdit and with that I could capture the text that's under the text cursor easily, like this:
> ```
> textCursor = self.textCursor()
> textCursor.select(QTextCursor.WordUnderCursor)
> text = textCursor.selectedText()
> ```
> But in QsciScintilla there is no such method as self.textCursor() so I'm wondering, how to get the text under text cursor.
Something like...
http://pyqt.sourceforge.net/Docs/QScintilla2/classQsciScintilla.html#ab16bf1441e84796945deacef768f89e4
http://pyqt.sourceforge.net/Docs/QScintilla2/classQsciScintilla.html#a540654e6e1bf1d2f8953e6260ba3121c
http://pyqt.sourceforge.net/Docs/QScintilla2/classQsciScintilla.html#a871a88630bb109dc3ef6bae03cdbb8ae
Phil
More information about the QScintilla
mailing list