How to update textedit with qDebug things..
-
hi i want to create a console like thing what ever the standerdouts i want to put it in text edit i wrote code like this
@
process = new QProcess(this);
process->setReadChannel(QProcess::StandardOutput);
connect(process, SIGNAL(readyReadStandardOutput()), this, SLOT(updateOutput()));void MainWindow :: updateOutput(void)
{
QByteArray bytes = process->readAllStandardOutput();
ui->textEdit->insertPlainText(bytes);
}@
When i run Qt application i want see all stdout in this textEdit..but it was not showing any thing can some one please tell me what is the wrong in this one... -
-
You should start the process.
EDIT:
How is your question related to your thread topic? They do not match at all and qDebug is not used anywhere in your code.