QT设置textEdit光标到末尾

//移动光标到末尾
    QTextCursor cursor = ui->receiveTextEdit->textCursor();
    cursor.movePosition(QTextCursor::End);
    ui->receiveTextEdit->setTextCursor(cursor);
posted on 2016-07-22 22:47  神秘藏宝室  阅读(7212)  评论(0编辑  收藏  举报

 >>>转载请注明出处<<<