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.
Launching a native application from Qt
This code snippet shows how to launch a native application from Qt. The example has been tested launching the Symbian camera application on the Symbian platform, but the code should work generically.
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.
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:
QProcess signals the process state changes to the stateChanged slot.
The Symbian native camera is started.