On Fri, 25 Mar 2011 19:53:06 +0100, David Moreno <[email protected]> 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 _______________________________________________ QScintilla mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/qscintilla
