[Qt-interest] QProcess and Genisoimage

Predrag Manojlovic pedjaman at gmail.com
Mon Mar 2 22:58:16 CET 2009


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?
> 
Hi,

if you set "-o filename" then there should be nothing on StandardOutput.
If you need to read file, omit "-o filename".
If you  need to parse status messages read from StandardError

Predrag



More information about the Qt-interest-old mailing list