[QScintilla] Question about setTest
Phil Thompson
phil at riverbankcomputing.com
Sat Mar 26 15:34:57 GMT 2011
On Fri, 25 Mar 2011 19:53:06 +0100, David Moreno <saimazoon at terra.es>
wrote:
> Hi All
>
> May be this is a very obvious question but we have a function to
> retrive the text contained in a line (->text(line)), but There is a
> functon to set the text of a line?. InsertAt will append, and setText
> looks like it will set the whole text, there is a sort of
> setText(string, line) ?
Oddly the underlying Scintilla doesn't directly support this. I could
implement something but it would require messing with the current
selection. Rather than do this under the covers I've implemented
QsciScintilla::replaceSelectedText(const QString &text) so that you can do
the messing yourself.
Phil
More information about the QScintilla
mailing list