×
Namespaces

Variants
Actions
Revision as of 04:17, 11 October 2012 by hamishwillee (Talk | contribs)

Minimise application and show task switcher in Qt for Maemo

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Tested with
Devices(s): Nokia N900
Compatibility
Platform(s): Qt
Symbian
Article
Keywords: QDBusConnection, QDBusMessage
Created: tepaa (30 Oct 2009)
Last edited: hamishwillee (11 Oct 2012)

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.


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.


See also

59 page views in the last 30 days.