diff options
Diffstat (limited to 'sources')
-rw-r--r-- | sources/pyside6/doc/extras/QtQml.QmlUncreatable.rst | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/sources/pyside6/doc/extras/QtQml.QmlUncreatable.rst b/sources/pyside6/doc/extras/QtQml.QmlUncreatable.rst index ef6803cee..72fde741d 100644 --- a/sources/pyside6/doc/extras/QtQml.QmlUncreatable.rst +++ b/sources/pyside6/doc/extras/QtQml.QmlUncreatable.rst @@ -17,14 +17,15 @@ Some QML types are implicitly uncreatable, in particular types exposed with Passing None or no argument will cause a standard message to be used instead. .. code-block:: python - QML_IMPORT_NAME = "com.library.name" - QML_IMPORT_MAJOR_VERSION = 1 - QML_IMPORT_MINOR_VERSION = 0 # Optional + QML_IMPORT_NAME = "com.library.name" + QML_IMPORT_MAJOR_VERSION = 1 + QML_IMPORT_MINOR_VERSION = 0 # Optional - @QmlElement - @QmlUncreatable("BaseClassForQml is an abstract base class") - class BaseClassForQml(QObject): - # ... -.. note:: The order of the decorators matters, ``QmlUncreatable`` needs to be preceded by ``QmlElement``. + @QmlElement + @QmlUncreatable("BaseClassForQml is an abstract base class") + class BaseClassForQml(QObject): + # ... + +.. note:: The order of the decorators matters; ``QmlUncreatable`` needs to be preceded by ``QmlElement``. |