No subject
Sun Jan 18 00:47:59 UTC 2009
>=20
> Blocks until the process has started and the started() signal has=20
> been emitted, or until msecs milliseconds have passed.=20
>=20
> Returns true if the process was started successfully; otherwise=20
> returns false (if the operation timed out or if an error occurred).=20
Greetings=20
-Sascha-=20
_______________________________________________=20
mythtv-users mailing list=20
mythtv-users at mythtv.org=20
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users=20
------=_Part_179046_1081181659.1232469998798
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit
<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 12pt; color: #000000'><P>Hi,<BR><BR>Nasa schrieb:<BR>> I have looked extensively at MythMovies (closest thing to what I am <BR>> doing).....<BR>>>I think you missed this one from moviesui.cpp:<BR>>>if (!proc.waitForStarted())<BR><BR>>>Just as I said, you have to wait for the started signal!</P>
<P> </P>
<P>Nope,</P>
<P> </P>
<P>Didn't miss that -- it's used to ensure a process is started, not to see if it still running.</P>
<P> </P>
<P>WaitforFinish is the function to block until the process has stopped -- and no, it doesn't work either...</P>
<P> </P>
<P>Nasa</P>
<P> </P>
<P>(see here for function definitions: <A href="http://cep.xor.aps.anl.gov/software/qt4-x11-4.2.2-browser/df/dde/class_q_process.html#6d959047a5a84bcf752021cfff8a6ea8">http://cep.xor.aps.anl.gov/software/qt4-x11-4.2.2-browser/df/dde/class_q_process.html#6d959047a5a84bcf752021cfff8a6ea8</A> )<BR><BR>From the QT docs:<BR>> bool QProcess::waitForStarted ( int msecs = 30000 )<BR>> <BR>> Blocks until the process has started and the started() signal has<BR>> been emitted, or until msecs milliseconds have passed.<BR>> <BR>> Returns true if the process was started successfully; otherwise<BR>> returns false (if the operation timed out or if an error occurred).<BR><BR>Greetings<BR>-Sascha-<BR>_______________________________________________<BR>mythtv-users mailing list<BR>mythtv-users at mythtv.org<BR>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users<BR></P></div></body></html>
------=_Part_179046_1081181659.1232469998798--
More information about the mythtv-users
mailing list