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. Thanks for all your past and future contributions.

How to make a background running application in Qt

From Wiki
Jump to: navigation, search

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
Platform(s): All Qt Supported
Keywords: Qt Application
Created: skumar_rao (24 Nov 2010)
Last edited: hamishwillee (11 Oct 2012)

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;

Related Articles

This page was last modified on 11 October 2012, at 01:17.
81 page views in the last 30 days.