Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
A frontend GUI app: console view
Tyrn last edited by
What is the best way to implement a 'Shell View' in a GUI application? I mean, a GUI application designed mainly to arrange shell utilities calls (a frontend). Such console view is a feature with almost any IDE; so, probably, the question is no big deal. I tried the docs, but can't think of the proper keywords. Any suggestion is welcome.
lgeyer last edited by
I would go for a read-only "QPlainTextEdit":http://developer.qt.nokia.com/doc/qt-4.8/qplaintextedit.html, spawn the shell commands using "QProcess":http://developer.qt.nokia.com/doc/qt-4.8/qprocess.html, connect to "readReadStandardError()":http://developer.qt.nokia.com/doc/qt-4.8/qprocess.html#readyReadStandardError and "readyReadStandardOutput()":http://developer.qt.nokia.com/doc/qt-4.8/qprocess.html#readyReadStandardOutput and "append":http://developer.qt.nokia.com/doc/qt-4.8/qplaintextedit.html#appendPlainText the text to the QPlainTextEdit.
mahesh last edited by
i am also facing the same problem how can we read the latest entry text from QPlainTextEdit...presently i am using QLineEdit for command entry and textedit for output showing...it's looking ugly ...can some one please help me ..
i am trying to do like this
tcl> puts "helloworld"
//if i enter a puts command and hit enter how to read that command and how to pass the signal to Qprocess like QLineedit have return pressed signal