[Qt-interest] Return code of QApplication::exec()
Frank Mertens
frank at cyblogic.de
Sat Mar 6 14:54:20 CET 2010
Markus wrote:
> Hello!
>
> If the application ends, the return code from QApplication::exec() is 0
> for a normal exit. If an error occurs, the return value is greater 0.
> But what is the meaning of this number? I don't set any number to the
> exit() or quit() function, but what happend when the return code ist
> 62097 for example?
>
> Any idea?
>
I would assume 128 + <signal number>.
And the signal number is the signal that killed your process (SIGBUS, etc.).
But I'm not sure which convention is followed by QApplication.
More information about the Qt-interest-old
mailing list