![]() |
Home · All Classes · All Functions · Overviews |
The QDeclarativeExtensionPlugin class provides an abstract base for custom QML extension plugins. More...
#include <QDeclarativeExtensionPlugin>
Inherits QObject.
This class was introduced in Qt 4.7.
QDeclarativeExtensionPlugin ( QObject * parent = 0 ) | |
~QDeclarativeExtensionPlugin () |
virtual void | initializeEngine ( QDeclarativeEngine * engine, const char * uri ) |
virtual void | registerTypes ( const char * uri ) = 0 |
The QDeclarativeExtensionPlugin class provides an abstract base for custom QML extension plugins.
QDeclarativeExtensionPlugin is a plugin interface that makes it possible to offer extensions that can be loaded dynamically into applications using the QDeclarativeEngine class.
Writing a QML extension plugin is achieved by subclassing this base class, reimplementing the pure virtual initialize() function, and exporting the class using the Q_EXPORT_PLUGIN2() macro. See How to Create Qt Plugins for details.
See also QDeclarativeEngine::importExtension().
Constructs a QML extension plugin with the given parent.
Note that this constructor is invoked automatically by the Q_EXPORT_PLUGIN2() macro, so there is no need for calling it explicitly.
Initializes the extension specified in the given engine.
Registers the QML types in the given uri.
Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt 4.7.0 |