Qt 6.11 is out! See what's new in the release
blog
How to update textedit with qDebug things..
General and Desktop
3
Posts
3
Posters
3.4k
Views
1
Watching
-
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... -