<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 12pt; color: #000000'><P>Hi,</P>
<P>&nbsp;</P>
<P>I am working on porting a plugin to qt4 and am running into a slight issue...</P>
<P>&nbsp;</P>
<P>The issue surrounds QProcess, example code follows:</P>
<P>&nbsp;</P>
<P>QProcess proc;</P>
<P>&nbsp;</P>
<P>QString program;</P>
<P>QStringList args;</P>
<P>&nbsp;</P>
<P>program = "some path to script/program";</P>
<P>args += " -&nbsp;";<BR></P>
<P>proc.start(program,args)</P>
<P>&nbsp;</P>
<P>if (QProcess::Running == proc.state())</P>
<P>{</P>
<P>&nbsp;&nbsp; do something</P>
<P>}</P>
<P>&nbsp;</P>
<P>blah, blah....</P>
<P>&nbsp;</P>
<P>The problem is that the if statement is never done.&nbsp; Infact, in my testing I have never seen any form of that if statement work -- even though the QT docs suggest that it should.&nbsp; Could someone clue me into why this isn't working?</P>
<P>&nbsp;</P>
<P>Nasa</P></div></body></html>