Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to start text from down in QTextEdit
ARASHz4 last edited by A Former User
I have a QTextEdit and i want to show text in bottom of QTextEdit
matthew.kuiash last edited by
@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
If that is not what what you mean, then please spend little more time to describe better what you try to do :)
ARASHz4 last edited by ARASHz4
my mean is the pointer start in last line
something like Telegram messenger
You can move the cursor with
QTextCursor textCursor = ui->textEdit->textCursor();
ARASHz4 last edited by
@mrjj I test this but don't work
but I guess you want to curser at the end of your document?
than you'll have to replace
QTextCursor::Start with QTextCursor::End
Well its a sample for "how to move the cursor"
you must look at the doc and understand the code....
Then it will work :)
Thank you to @J-Hilk for doing it for you :)