这是我从你摘得关于插入字符串函数,具体我就不用说了。
void QMultiLineEdit::insertLine ( const QString & txt, int line = -1 ) [virtual]
Inserts txt at paragraph number line. If line is less than zero, or larger than the number of paragraphs, the new text is put at the end. If txt contains newline characters, several paragraphs are inserted.
The cursor position is not changed.