Unsolved How to start text from down in QTextEdit
-
Hi
I have a QTextEdit and i want to show text in bottom of QTextEdit -
@ARASHz4 I'm sorry. I can't understand you question. What do you mean by "down"?
-
Well I guess on:
Showing the last text so to speak.You can make it scroll down by
ui->textEdit->verticalScrollBar()->setValue(ui.textEdit->verticalScrollBar()->maximum());If that is not what what you mean, then please spend little more time to describe better what you try to do :)
-
my mean is the pointer start in last line
something like Telegram messenger -
@ARASHz4
You can move the cursor with
QTextCursor textCursor = ui->textEdit->textCursor();
textCursor.movePosition(QTextCursor::Start, QTextCursor::MoveAnchor,1);
ui->textEdit->setTextCursor(textCursor); -
@mrjj I test this but don't work
-
it should,
but I guess you want to curser at the end of your document?than you'll have to replace
QTextCursor::Start with QTextCursor::End
-