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??
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.
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!