QT设置textEdit光标到末尾
//移动光标到末尾
QTextCursor cursor = ui->receiveTextEdit->textCursor();
cursor.movePosition(QTextCursor::End);
ui->receiveTextEdit->setTextCursor(cursor);
文章对您有帮助,开心可以打赏我,金额随意,欢迎来赏!
需要电子方面开发板/传感器/模块等硬件可以到我的淘宝店逛逛
//移动光标到末尾
QTextCursor cursor = ui->receiveTextEdit->textCursor();
cursor.movePosition(QTextCursor::End);
ui->receiveTextEdit->setTextCursor(cursor);
文章对您有帮助,开心可以打赏我,金额随意,欢迎来赏!
需要电子方面开发板/传感器/模块等硬件可以到我的淘宝店逛逛