I want to implement a simple graphical shell in Qt using a QTextEdit
. I want to get user commands and print the results in that QTextEdit
.
The code below returns the whole content of the QTextEdit
:
text_editor.toPlainText().toAscii();
But I don't know how to differentiate between what the user entered and what was printed before. What is the right way to do this?