diff options
Diffstat (limited to 'src/qml/doc/src/cppintegration/definetypes.qdoc')
-rw-r--r-- | src/qml/doc/src/cppintegration/definetypes.qdoc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/doc/src/cppintegration/definetypes.qdoc b/src/qml/doc/src/cppintegration/definetypes.qdoc index cbbbd9ba58..5098f74df8 100644 --- a/src/qml/doc/src/cppintegration/definetypes.qdoc +++ b/src/qml/doc/src/cppintegration/definetypes.qdoc @@ -310,6 +310,9 @@ QLineEdit, without modifying its source code. The QML_EXTENDED(extended) macro is for registering extended types. The argument is the name of another class to be used as extension. +You can also use QML_EXTENDED_NAMESPACE(namespace) to register a namespace, and +especially the enumerations declared within, as an extension to a type. + An extension class is a regular QObject, with a constructor that takes a QObject pointer. However, the extension class creation is delayed until the first extended property is accessed. The extension class is created and the target |