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.
Launching a native application from Qt
S60 5th Edition
This code snippet shows how to launch a native Symbian application from Qt for S60.
Note: In order to use this code, you need to have Qt for S60 installed on your platform.
- Install latest Qt for S60 see Qt for S60 - Installation packages
- Check this link for installation guide: How to install the package.
- Go through this article: Getting started with Qt for S60
The ProcessHandler starts the process and listens for its states.
class ProcessHandler : public QObject
ProcessHandler(QObject *parent = 0);
void stateChanged(QProcess::ProcessState state);
void error(QProcess::ProcessError error);
Create QProcess and start listening for process state changes.
process = new QProcess(this);
if (process->state() != QProcess::NotRunning)
// Close process if it is running
Start the Symbian native camera Cameraapp.exe:
QString program = "Cameraapp.exe";
QProcess signals the error to the error slot:
void ProcessHandler::error(QProcess::ProcessError error)
// TODO: Handle error
QProcess signals the process state changes to the stateChanged slot.
void ProcessHandler::stateChanged(QProcess::ProcessState state)
// TODO: do what you want with
// different states
The Symbian native camera is started from the Qt for S60 application.