From 3cd0000b70f031116dcb7d907b48f56e0bc9f9e9 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 2 Aug 2022 13:54:43 +0200 Subject: 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 --- src/qml/types/qqmlconnections.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/qml/types/qqmlconnections.cpp') 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) : -- cgit v1.2.3