[Qt-interest] Qprocess - determining the state

Andre Haupt andre at bitwigglers.org
Fri Dec 4 09:31:52 CET 2009


On Thu, Dec 03, 2009 at 12:03:55PM +1000, Phil wrote:
> Thank you for reading this.
> 
> I'm trying to determine the state of a QProcess. Neither of the following 
> attempts is correct. The first causes a compile error and the second results in 
> a number that is not 0, 1 or 2.
> 
> ProcessState = myProcess->state();
> int x = myProcess->state();

QProcess::ProcessState state = myProcess->state();

regards,

Andre



More information about the Qt-interest-old mailing list