Minimise application and show task switcher in Qt for Maemo
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.
The article is believed to be still valid for the original topic scope.
The article is believed to be still valid for the original topic scope.
Contents |
Overview
This example shows how to minimise a Qt Maemo application and open a task switcher. The example sends the D-Bus command exit_app_view into the com.nokia.hildon_desktop D-Bus interface.
Preconditions
- Qt is installed on your platform.
- Qt on Maemo can be found here: Qt4 Maemo port
Project .pro file
// Maemo specific config
unix:!symbian {
CONFIG += qdbus
}
Header
#include <QtDBus/QtDBus>
Source
QDBusConnection connection = QDBusConnection::sessionBus();
QDBusMessage message = QDBusMessage::createSignal("/","com.nokia.hildon_desktop","exit_app_view");
connection.send(message);
Postconditions
The Qt application minimises itself like a native Maemo application.


That is all nice, but where do you find the system icon for the task switcher?