[Qt-interest] QProcess and Genisoimage

Stephen Jackson spjackson42 at gmail.com
Mon Mar 2 22:40:11 CET 2009


On Tue, Mar 3, 2009 at 12:43 AM, Keiver Hdez Fdez wrote:
>
>  Hello everyone, I'm trying to parse the output of genisoimage started with QProcess, but I can't get any output text.
>
>  I'm doing this:
> - Setting the right channel:
>    geniso->setReadChannel(QProcess::StandardOutput);
>
> -Using the signals:
>    connect(geniso,SIGNAL(readyReadStandardOutput()),this,SLOT(readISO()));
>
> - Reading the output correctly:(I think...)
>    QByteArray output = geniso->readAllStandardOutput();
>    QString str = output.constData();
>
> If I use the same code with any other command, I get the output of it.
> Any ideas? Is a problem of genisoimage?
>

On my Linux systems, genisoimage normally writes nothing to Standard
Output. Its informational messages are written to Standard Error. So
it is probably Standard Error that you want to read.

Stephen Jackson




More information about the Qt-interest-old mailing list