Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.
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\