[Qt-interest] Writing slave commands to process

Thiago Macieira thiago.macieira at trolltech.com
Thu Mar 19 07:56:00 CET 2009


arun kumar wrote:
>Hai,
>
>How to write slave commands to mplayer using Qt,I started my mplayer
> using QProcess::start() method,
>but when i call Qprocess::write() method It seams to be not working
>propperly
>
>The code i tried is
>
>
>  QString str2="loadfile /home/quarkmeson/Videos/sample.mpg";
>
>QByteArray arr2= str2.toLocal8Bit();
>
>process->open(QIODevice::WriteOnly);
>pocess->write(arr2);
>
> anybody who tried this please help me..

The problem is on the lines after process->write.

Please post a more complete code sample. Please make sure it compiles: 
writing the code by hand in the email does not help us help you.

-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Product Manager - Nokia, Qt Software
      Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090319/b026adb1/attachment.bin 


More information about the Qt-interest-old mailing list