Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
i want to create a terminal interface for my project. I am using QTextEdit object.
I've done everything, but I want that some past text of the widget must be fixed and not editable like a terminal interface.
How can I do??
qxoz last edited by
look at "qtserialport":http://qt.gitorious.org/qtplayground/qtserialport
in examples\terminal\ directory you find what you need.
Thank you for your reply but in that repository there is not the solution.
I want to use my QTextEdit like a terminal, but I want to input some command in it.
The code in that repository doesn't allow to delete the content by discarding the backspace action.
I want to realize the same behavior like a command prompt.
joonhwan last edited by
Please take a look at "ReplWidget":https://github.com/pb82/ReplWidget
Repl means "Read-Eval-Print-Loop" which is generally used in script language environment and this is similar to command prompt. And the code there was not complex when I first looked into, so I believe you'd feel comformtable.
bq. Please take a look at ReplWidget [github.com]
Thank you so much!
This is perfect for my purposes!