summaryrefslogtreecommitdiffstats
path: root/doc/src/declarative
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-01-08 04:32:41 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-01-08 04:32:41 (GMT)
commit9151c4838ac7428107246abb9c99f296ab395c3d (patch)
treec677bd3fbe24ab3cdbde2b7a5e9cd608a1c8e27d /doc/src/declarative
parent42ab4b839af7d02258bc40389f11ec615cf42f0c (diff)
downloadQt-9151c4838ac7428107246abb9c99f296ab395c3d.zip
Qt-9151c4838ac7428107246abb9c99f296ab395c3d.tar.gz
Qt-9151c4838ac7428107246abb9c99f296ab395c3d.tar.bz2
Allow QML types defined in both C++ and QML files to be in the same module.
Diffstat (limited to 'doc/src/declarative')
-rw-r--r--doc/src/declarative/modules.qdoc5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/src/declarative/modules.qdoc b/doc/src/declarative/modules.qdoc
index ec36fe7..368595f 100644
--- a/doc/src/declarative/modules.qdoc
+++ b/doc/src/declarative/modules.qdoc
@@ -63,7 +63,8 @@ This makes available all types in Qt that were available in Qt 4.6, regardless o
actual version of Qt executing the QML. So even if Qt 4.7 adds a type that would conflict
with a type you defined while using 4.6, that type is not imported, so there is no conflict.
-Types defined by plugins are made using QmlModulePlugin.
+Types defined by plugins are made using QmlModulePlugin. Installed plugins and QML files
+can both contribute types to the same module.
\section1 Importing Types Defined in QML
@@ -71,6 +72,7 @@ Types defined by plugins are made using QmlModulePlugin.
When importing types \link components defined using QML\endlink, the syntax depends
on whether or not the types are installed on the system.
+
\section2 Installed QML Files
To import types defined in QML files that are installed on the system running the
@@ -83,6 +85,7 @@ import com.nokia.Example 1.0
Files imported in this way are found on the paths added by QmlEngine::addImportPath(),
which by default only inludes \c $QTDIR/qml, so the above would make available those types
defined in \c $QTDIR/qml/com/nokia/Example which are specified as being in version 1.0.
+Installed plugins and QML files can both contribute types to the same module.
The specification of types to versions is given by a special file, \c qmldir which must
exist in the module directory. The syntax is described below.