[Qt-interest] value returned by QApplication.exec()

Nikos Chantziaras realnc at arcor.de
Wed Jul 21 19:11:26 CEST 2010


On 07/21/2010 07:48 PM, Vijay Kansal wrote:
>
> Hi,
> We start event processing loop of our application using call to exec via
> a QApplication object
> Can we make this exec function to return an integer value as per the
> requirements of our program?
> Please help.

Read the documentation of exec().  It says:

"Enters the main event loop and waits until exit() is called. Returns 
the value that was set to exit() (which is 0 if exit() is called via 
quit())."

Note that QCoreApplication::exit() *does* return (as stated in its docs.)



More information about the Qt-interest-old mailing list