aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/doc/extras/QtQml.QmlElement.rst
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside2/doc/extras/QtQml.QmlElement.rst')
-rw-r--r--sources/pyside2/doc/extras/QtQml.QmlElement.rst28
1 files changed, 0 insertions, 28 deletions
diff --git a/sources/pyside2/doc/extras/QtQml.QmlElement.rst b/sources/pyside2/doc/extras/QtQml.QmlElement.rst
deleted file mode 100644
index 90a5134c1..000000000
--- a/sources/pyside2/doc/extras/QtQml.QmlElement.rst
+++ /dev/null
@@ -1,28 +0,0 @@
-.. currentmodule:: PySide2.QtQml
-.. _QmlElement:
-
-QmlElement
-**********
-
-.. py:decorator:: QmlElement
-
- This decorator registers a class it is attached to for use in QML, using
- global variables to specify the import name and version.
-
- ::
- QML_IMPORT_NAME = "com.library.name"
- QML_IMPORT_MAJOR_VERSION = 1
- QML_IMPORT_MINOR_VERSION = 0 # Optional
-
- @QmlElement
- class ClassForQml(QObject):
- # ...
-
- Afterwards the class may be used in QML:
-
- ::
- import com.library.name 1.0
-
- ClassForQml {
- // ...
- }