Implementing a GUI Shell in qt

后端 未结 2 510
夕颜
夕颜 2021-01-27 20:22

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

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-27 21:02

    Reimplement the key press event handler to do it's normal work, but also to save the user typed data. Once enter is pressed, the separately saved text is executed and then cleared.

提交回复
热议问题