Hi,
I am running the below process in my application
myProcess->start("/EXEC/Unlock");
myProcess->waitForFinished();
//qDebug() << "Unlock Output:" << myProcess->readAll();
qDebug() << "Unlock Output:\n" << myProcess->readAllStandardOutput();
QByteArray newData
=myProcess
->readAllStandardOutput
();
qDebug() << "Unlock Output:" << newData;
QProcess *myProcess = new QProcess(this);
myProcess->start("/EXEC/Unlock");
myProcess->waitForFinished();
//qDebug() << "Unlock Output:" << myProcess->readAll();
qDebug() << "Unlock Output:\n" << myProcess->readAllStandardOutput();
QByteArray newData=myProcess->readAllStandardOutput();
qDebug() << "Unlock Output:" << newData;
To copy to clipboard, switch view to plain text mode
But the output i read from the read using all the above methods gives empty string.
Help me
In my Process application I will put the below output in console:
qDebug() << "FileName Output:" << fileName;
qDebug() << "FileName Output:" << fileName;
To copy to clipboard, switch view to plain text mode
Bookmarks