Qt creator
-
Hello,
My problem question is same as asked in thread 11687 but i want to show the output in continous manner.
Like if i m installing a software then first line of process shown in terminal to be displayed in textbox and then the second one while the process still running.how i m gona achieve this…
help me out in this…..
Thanks…… -
QProcess does have a signal readyRead() that is triggered whenever process output is available from the standard output of your process. Connect a slot to this signal and use readAll() to obtain all output that is currently available.
@
// ...
myProcess = new QProcess(parent);QObject::connect(myProcess, SIGNAL(readyRead()), obj, SLOT(processOutput()));
myProcess->start("myexecutable");
// ...
@@
// ...
public slots:
void processOutput() {
QByteArray data = myProcess->readAll();
// Process output ...
}
// ...
@