diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-04-27 04:48:28 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-04-27 04:49:23 (GMT) |
commit | f0826662baaf7916f7b5f4fa9c8e9abab457731d (patch) | |
tree | 07333d1c267698d44eb0db382652e1ae1becdcdf /src/declarative/qml | |
parent | 4b2293fe1dbb82a0767fff155cef9e33cde3faeb (diff) | |
download | Qt-f0826662baaf7916f7b5f4fa9c8e9abab457731d.zip Qt-f0826662baaf7916f7b5f4fa9c8e9abab457731d.tar.gz Qt-f0826662baaf7916f7b5f4fa9c8e9abab457731d.tar.bz2 |
Plugins documentation.
Task-number: QTBUG-10129
Diffstat (limited to 'src/declarative/qml')
-rw-r--r-- | src/declarative/qml/qdeclarativeextensionplugin.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/declarative/qml/qdeclarativeextensionplugin.cpp b/src/declarative/qml/qdeclarativeextensionplugin.cpp index 863bfc4..2c15385 100644 --- a/src/declarative/qml/qdeclarativeextensionplugin.cpp +++ b/src/declarative/qml/qdeclarativeextensionplugin.cpp @@ -64,8 +64,11 @@ QT_BEGIN_NAMESPACE as any manipulation of the engine's root context may cause conflicts or other issues in the library user's code. - See \l {Extending QML in C++} for details how to write a QML extension plugin. - See \l {How to Create Qt Plugins} for general Qt plugin documentation. + See \l {Tutorial: Writing QML extensions with C++} for details on creating + QML extensions, including how to build a plugin with with QDeclarativeExtensionPlugin. + For a simple overview, see the \l{declarative/plugins}{plugins} example. + + Also see \l {How to Create Qt Plugins} for general Qt plugin documentation. \sa QDeclarativeEngine::importPlugin() */ @@ -73,8 +76,12 @@ QT_BEGIN_NAMESPACE /*! \fn void QDeclarativeExtensionPlugin::registerTypes(const char *uri) - Registers the QML types in the given \a uri. Here you call qmlRegisterType() for - all types which are provided by the extension plugin. + Registers the QML types in the given \a uri. Subclasses should implement + this to call qmlRegisterType() for all types which are provided by the extension + plugin. + + The \a uri is an identifier for the plugin generated by the QML engine + based on the name and path of the extension's plugin library. */ /*! |