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  · 

QThemeItemPlugin Class Reference
[QtBaseModule]

The QThemeItemPlugin class is a simple plugin interface that makes it easy to create custom theme items that can be loaded dynamically using the QThemeItemFactory class. More...

    #include <QThemeItemPlugin>

Inherits QObject.

This class was introduced in Qtopia 4.4.

Public Functions

  • virtual QThemeItem * create ( const QString & type, QThemeItem * parent ) = 0
  • virtual QStringList keys () const = 0
  • 29 public functions inherited from QObject

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 signal 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 QThemeItemPlugin class is a simple plugin interface that makes it easy to create custom theme items that can be loaded dynamically using the QThemeItemFactory class.

Writing a theme item plugin is achieved by subclassing this base class, reimplementing the pure virtual keys() and create() functions, and exporting the class using the QTOPIA_EXPORT_PLUGIN() macro.

See also QThemeItem and QThemeItemFactory.


Member Function Documentation

QThemeItem * QThemeItemPlugin::create ( const QString & type, QThemeItem * parent )   [pure virtual]

Creates and returns a QThemeItem object for the given type with parent parent. If a plugin cannot create a item, it should return 0 instead.

QStringList QThemeItemPlugin::keys () const   [pure virtual]

Returns the list of theme items this plugin supports. These keys are usually the class names of the custom items that are implemented in the plugin.

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