Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

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

Additional Inherited Members


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.


Copyright © 2009 Nokia Trademarks
Qt Extended 4.4.3