aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/qml/doc/src/qmlfunctions.qdoc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/qml/doc/src/qmlfunctions.qdoc b/src/qml/doc/src/qmlfunctions.qdoc
index 01ce96167f..eb7983d077 100644
--- a/src/qml/doc/src/qmlfunctions.qdoc
+++ b/src/qml/doc/src/qmlfunctions.qdoc
@@ -186,10 +186,7 @@
factory function of the signature \c{T *create(QQmlEngine *, QJSEngine *)}
when the type is first accessed. If both do exist and are accessible, the
default constructor is preferred. If there is no default constructor and no
- factory function the singleton is initially inaccessible. This behavior can be
- overridden by calling \l qmlRegisterSingletonType() with a specific (external)
- factory function or \l qmlRegisterSingletonInstance() with a specific instance
- for the same class and the same type namespace and version.
+ factory function the singleton is initially inaccessible.
\sa QML_ELEMENT, QML_NAMED_ELEMENT(), qmlRegisterSingletonInstance().
*/
@@ -1005,6 +1002,8 @@
\l {qmlRegisterSingletonType}. See \l{Threads and QObjects} for more
information about thread safety.
+ \b{NOTE:} qmlRegisterSingleton can only be used when all types of that module are registered procedurally.
+
Usage:
\code
// First, define your QObject which provides the functionality.