Namespaces
Variants
Actions

Minimise application and show task switcher in Qt for Maemo

Jump to: navigation, search
Archived.png
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.


Article Metadata

Tested with
Devices(s): Nokia N900

Compatibility
Platform(s): Qt

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.
216 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved