How to send a Qt app to the background on Symbian
This code snippet demonstrates how to hide a Qt application in the background on Symbian, instead of allowing it to exit.
The way it works is that when the application is exited the exec() completes, and the app window is forced into the background and then re-executed. Symbian C++ code is used to force the app into the background.
int rc = 0;
rc = a.exec();
RWindowGroup* wg = &CCoeEnv::Static()->RootWin();
You need following linkage in your .pro file
LIBS += -lws32\