diff --git a/doc/src/particles/particles.qdoc b/doc/src/particles/particles.qdoc index d51bcdf11f7543bf3d78e1bc637acf198103d3b5..be7d65ba17de5f5ad7c09263cae236e3547fe22a 100644 --- a/doc/src/particles/particles.qdoc +++ b/doc/src/particles/particles.qdoc @@ -31,7 +31,10 @@ \brief Elements for the Qt Quick particle system - This QML module contains a particle system for Qt Quick. + This QML module contains a particle system for Qt Quick. To use these elements, you will need to import the module with the following line: + \code + import QtQuick.Particles 2.0 + \endcode For a simple overview of how the system can be used, see \l{qml-particlesystem.html}{Using the Qt Quick Particle System}. @@ -44,6 +47,12 @@ \inqmlmodule QtQuick.Particles 2 \title Using the Qt Quick Particle System + + Note that to use elements from the particles module, you will need to import the types with the following line: + \code + import QtQuick.Particles 2.0 + \endcode + \section1 The ParticleSystem This particle system contains four main types of QML Elements: ParticleSystem, Painters, Emitters and Affectors. diff --git a/src/imports/xmllistmodel/qqmlxmllistmodel.cpp b/src/imports/xmllistmodel/qqmlxmllistmodel.cpp index 22072dc75adb30f2d35af916b338e009f242370c..e95fd26f79b1d21e5ae2fbc686345f00a2524875 100644 --- a/src/imports/xmllistmodel/qqmlxmllistmodel.cpp +++ b/src/imports/xmllistmodel/qqmlxmllistmodel.cpp @@ -599,6 +599,12 @@ void QQuickXmlListModelPrivate::clear_role(QQmlListProperty<QQuickXmlListModelRo \ingroup qml-working-with-data \brief The XmlListModel element is used to specify a read-only model using XPath expressions. + + To use this element, you will need to import the module with the following line: + \code + import QtQuick.XmlListModel 2.0 + \endcode + XmlListModel is used to create a read-only model from XML data. It can be used as a data source for view elements (such as ListView, PathView, GridView) and other elements that interact with model data (such as \l Repeater). @@ -626,6 +632,7 @@ void QQuickXmlListModelPrivate::clear_role(QQmlListProperty<QQuickXmlListModelRo \qml import QtQuick 2.0 + import QtQuick.XmlListModel 2.0 XmlListModel { id: xmlModel diff --git a/src/quick/items/qquickcanvas.cpp b/src/quick/items/qquickcanvas.cpp index f59a89a0d3221ed36b0f223f46acee5b0ff97f60..f4aa735ffdc28c73e4c0a243f0c487de3e549db9 100644 --- a/src/quick/items/qquickcanvas.cpp +++ b/src/quick/items/qquickcanvas.cpp @@ -729,6 +729,13 @@ void QQuickCanvasPrivate::cleanup(QSGNode *n) The Window object creates a new top-level window for a QtQuick scene. It automatically sets up the window for use with QtQuick 2.0 graphical elements. + + To use this element, you will need to import the module with the following line: + \code + import QtQuick.Window 2.0 + \endcode + + Restricting this import will allow you to have a QML environment without access to window system features. */ /*! \class QQuickCanvas diff --git a/src/quick/items/qquickscreen.cpp b/src/quick/items/qquickscreen.cpp index a00df4600d4b66c56aeaa0025457c89a4d111a94..280a06cf575005326f09471b6e55dafd0b4fe744 100644 --- a/src/quick/items/qquickscreen.cpp +++ b/src/quick/items/qquickscreen.cpp @@ -56,6 +56,13 @@ QT_BEGIN_NAMESPACE The Screen attached object is only valid inside Item or Item derived elements. Inside these elements it refers to the screen that the element is currently being displayed on. + + To use this element, you will need to import the module with the following line: + \code + import QtQuick.Window 2.0 + \endcode + + Restricting this import will allow you to have a QML environment without access to window system features. */ /*!