×
Namespaces

Variants
Actions

Minimise application and show task switcher in Qt for Maemo

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: 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.


Article Metadata
Tested with
Devices(s): Nokia N900
Compatibility
Platform(s): Qt
Symbian
Article
Keywords: QDBusConnection, QDBusMessage
Created: tepaa (30 Oct 2009)
Last edited: lpvalente (06 Feb 2013)

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

This page was last modified on 6 February 2013, at 00:06.
44 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×