Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

TaskManagerEntry Class Reference
[QtBaseModule]

The TaskManagerEntry class is used to insert non-application items into the Running Applications/TaskManager window. More...

    #include <TaskManagerEntry>

Inherits QObject.

Public Functions

  • TaskManagerEntry ( const QString & description, const QString & iconPath, QObject * parent = 0 )
  • 29 public functions inherited from QObject

Public Slots

  • 1 public slot inherited from QObject

Signals

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public type inherited from QObject
  • 4 static public members inherited from QObject
  • 7 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The TaskManagerEntry class is used to insert non-application items into the Running Applications/TaskManager window.

Normally, the TaskManager only shows Qt Extended applications. However, there may be times when you need to show other items in the TaskManager. For example, if you have a server task that displays an informational dialog about a long-running activity, you might want the dialog to be accessible via the TaskManager window so the user can return to the dialog if it is backgrounded. However, in this situation, the dialog will not automatically be displayed in the TaskManager because it is an ordinary dialog and not a Qt Extended application.

In these cases, you can use the TaskManagerEntry class. For example:

    TaskManagerEntry *cpuMonitorItem =
            new TaskManagerEntry(tr("CPU Monitor"), "cpuMonitorIcon");
    connect(cpuMonitorItem, SIGNAL(activated()),
            this, SLOT(raiseCpuMonitorDialog()));
    cpuMonitorItem->show();

The activated() signal is emitted when the user activates the item in the TaskManager window.


Member Function Documentation

TaskManagerEntry::TaskManagerEntry ( const QString & description, const QString & iconPath, QObject * parent = 0 )

Constructs a new TaskManagerEntry. description represents the string under which the entry should appear in the task task manager launcher view and iconPath describes the icon to be used. parent is the standard QObject parent parameter.

void TaskManagerEntry::activated ()   [signal]

Emitted when the user has activated this item from the TaskManager.

void TaskManagerEntry::hide ()   [slot]

Hides this item in the TaskManager. This is equivalent to deregistering the entry.

See also show().

void TaskManagerEntry::show ()   [slot]

Shows this item in the Running Applications window. This is equivalent to registering the this new entry with the task manager.

See also hide().

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 88
  2. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
  3. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  4. Pourquoi les programmeurs sont-ils moins payés que les gestionnaires de programmes ? Manquent-ils de pouvoir de négociation ? 36
  5. BlackBerry 10 : premières images du prochain OS de RIM qui devrait intégrer des widgets et des tuiles inspirées de Windows Phone 0
  6. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  7. Adieu qmake, bienvenue qbs : Qt Building Suite, un outil déclaratif et extensible pour la compilation de projets Qt 17
Page suivante

Le Qt Quarterly au hasard

Logo

Utiliser CMake pour compiler des projets Qt

Qt Quarterly est la revue trimestrielle proposée par Nokia et à destination des développeurs Qt. Ces articles d'une grande qualité technique sont rédigés par des experts Qt. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt qtextended4.4
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web