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 open standard Clock App in Qt Maemo application
This article shows how to start system applications in Maemo, using the D-Bus command (as there is no Qt API for this purpose).
Here is an example of how to start Clock Application.
Project .pro file
// Maemo specific config lines, added to PRO-file
CONFIG += qdbus
// initializing D-Bus connection
QDBusConnection bus = QDBusConnection::sessionBus();
// here we create the D-Bus interface for starting application
QDBusInterface dbus_iface("com.nokia.HildonDesktop.AppMgr", "/com/nokia/HildonDesktop/AppMgr",
// here we send command 'LaunchApplication' with param 'worldclock'
--8:51, 30 November 2010 (UTC)