[Kde-perl] Problem returning QByteArray from QProcess::readStdout
Terrence Fleury (Terry)
tfleury at ncsa.uiuc.edu
Wed Jun 25 19:15:53 CEST 2003
> > So, if PerlQt can't handle QByteArrays, then QProcesses are basically
> > useless. What else can I do?
> >
>
> $ pqtapi QProcess | grep read
> QString QProcess::readLineStderr()
> QString QProcess::readLineStdout() <= use that one?
> QByteArray QProcess::readStderr()
> QByteArray QProcess::readStdout()
> void QProcess::readyReadStderr()
> void QProcess::readyReadStdout()
readLineStdout works perfectly. I just had to make sure to do a while loop
to get all of the output:
while ($proc->canReadLineStdout())
{
$readString .= $proc->readLineStdout();
}
Thanks for the help!!!
Terrence Fleury
tfleury at ncsa.uiuc.edu
More information about the Kde-perl
mailing list