diff options
Diffstat (limited to 'src/qml/doc/src/cppintegration/topic.qdoc')
-rw-r--r-- | src/qml/doc/src/cppintegration/topic.qdoc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/qml/doc/src/cppintegration/topic.qdoc b/src/qml/doc/src/cppintegration/topic.qdoc index 123ab18779..14a27c9a3f 100644 --- a/src/qml/doc/src/cppintegration/topic.qdoc +++ b/src/qml/doc/src/cppintegration/topic.qdoc @@ -53,8 +53,11 @@ The \c QML_ELEMENT macro makes the BackEnd class available in QML. \li Add the following lines to your project file: -\snippet code/backend/backend.pro registration - +\badcode +CONFIG += qmltypes +QML_IMPORT_NAME = io.qt.examples.backend +QML_IMPORT_MAJOR_VERSION = 1 +\endcode The BackEnd class is automatically registered as a type, which is accessible from QML by importing the URL, "\c{io.qt.examples.backend 1.0}". |