qt-interest@trolltech.com
[Top] [All Lists]

Re: [Qt-interest] Qprocess - determining the state

Subject: Re: [Qt-interest] Qprocess - determining the state
From: "Ross Driedger"
Date: Fri, 04 Dec 2009 08:11:03 -0500
On Fri, 04 Dec 2009 01:35:38 -0500, <qt-interest-request@xxxxxxxxxxxxx>  
wrote:


> 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();
> What have I misunderstood?

As someone else has mentioned, make sure that your QProcess object is  
valid.

Concerning the compile error, you need to give scope to the ProcessState  
symbol:
QProcess::ProcessState x = myProcess->state();

-- 
"Classical music is the kind we keep thinking will turn into a tune. "
Kin Hubbard

Ross Driedger
ross_at_earz.ca
_______________________________________________
Qt-interest mailing list
Qt-interest@xxxxxxxxxxxxx
http://lists.trolltech.com/mailman/listinfo/qt-interest

<Prev in Thread] Current Thread [Next in Thread>