textBrowser转到槽,textChanged()中加代码:
ui->textBrowser->moveCursor(QTextCursor::End);
每当内容改变时,将滚动条设置到底部。
void MainWindow::on_textBrowser_textChanged()
{
ui->textBrowser->moveCursor(QTextCursor::End);
}
textBrowser转到槽,textChanged()中加代码:
ui->textBrowser->moveCursor(QTextCursor::End);
每当内容改变时,将滚动条设置到底部。
void MainWindow::on_textBrowser_textChanged()
{
ui->textBrowser->moveCursor(QTextCursor::End);
}