summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativeextensionplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml/qdeclarativeextensionplugin.cpp')
-rw-r--r--src/declarative/qml/qdeclarativeextensionplugin.cpp15
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.
*/
/*!