How to make a background running application in Qt
This article demonstrates how to run an application in background. It generally a requirement in Symbian (mobile application in general) that we need a background task running always or started with a UI application. In this article we will see how simple it is to make a background running application which runs with out any any traces in Application menu.
Article Metadata
Tested with
Devices(s): Emulator / desktop / device
Compatibility
Platform(s): All Qt Supported
Article
Keywords: Qt Application
Created: skumar_rao
(24 Nov 2010)
Last edited: hamishwillee
(11 Oct 2012)
my_service.pro
QT += core
QT -= gui
TARGET = myservice
CONFIG += console
CONFIG -= app_bundle
CONFIG += no_icon # this will do the trick for hiding application icon from menu
when you want your service to start you can just call
QProcess myservice;
myserverProcess.startDetached("myservice");


If you have questions or feedback on this article or Qt Please ask in discussion board http://www.developer.nokia.com/Community/Discussion/forumdisplay.php?233-Qt-General