标签:get ESS pre qstring apple 一个 mes str app
Qt applendPlainText()/append() 多添加一个换行解决方法
void ConsoleDialog::appendMessageToEditor(const QString &message)
{
ui->textEdit->appendPlainText(message);
ui->textEdit->moveCursor(QTextCursor::End);
ui->textEdit->textCursor().deletePreviousChar();
}
每次append后,光标移到最后,删除前一个字符,即换行符。
Qt applendPlainText()/append() 多添加一个换行解决方法
标签:get ESS pre qstring apple 一个 mes str app
原文地址:https://www.cnblogs.com/dangerman/p/10784185.html