aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/types/qqmlconnections.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2022-08-02 13:54:43 +0200
committerUlf Hermann <ulf.hermann@qt.io>2022-08-29 11:21:34 +0000
commit3cd0000b70f031116dcb7d907b48f56e0bc9f9e9 (patch)
tree1cffd51fd897544e7ca84fccda045061a907f314 /src/qml/types/qqmlconnections.cpp
parent11da5cdcb099bd6707056803c948829b98a274bb (diff)
Doc: Connections: Mention old syntax and its problems
In particular, you cannot mix old and new syntax in the same object. Pick-to: 6.2 6.4 Fixes: QTBUG-93603 Change-Id: I27cb0a925baafa68715d9a5e2c505d963b4a390f Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/types/qqmlconnections.cpp')
-rw-r--r--src/qml/types/qqmlconnections.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qml/types/qqmlconnections.cpp b/src/qml/types/qqmlconnections.cpp
index 60d0e7a085..e93e40e69f 100644
--- a/src/qml/types/qqmlconnections.cpp
+++ b/src/qml/types/qqmlconnections.cpp
@@ -94,6 +94,12 @@ public:
}
\endqml
+ \note For backwards compatibility you can also specify the signal handlers
+ without \c{function}, like you would specify them directly in the target
+ object. This is not recommended. If you specify one signal handler this way,
+ then all signal handlers specified as \c{function} in the same Connections
+ object are ignored.
+
\sa {Qt QML}
*/
QQmlConnections::QQmlConnections(QObject *parent) :