PDA

View Full Version : QIODevice::read (QProcess): device not open



sagarsadhu
2nd January 2017, 10:14
QProcess process;
process.execute("vi new.txt");
process.waitForFinished(-1);
QByteArray output=(process.readAllStandardOutput());
QByteArray output1(process.readAllStandardError());


when i execute the above code , i am getting the output in the linux terminal but output is not being read .
It is appearing like "QIODevice::read (QProcess): device not open"

anda_skoa
2nd January 2017, 12:58
Hint: QProcess::execute() is a static method.

Cheers,
_