diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2022-08-02 13:54:43 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-08-29 15:33:26 +0000 |
commit | 29baa90d2d5a5632a111cbcde852671cd4114f39 (patch) | |
tree | 9c4a1b4e1f0812d3404aeb026d7a77b79336514c /src | |
parent | 15226d5aa11a5fd4569c815909e8e893036d2dbd (diff) |
Doc: Connections: Mention old syntax and its problems
In particular, you cannot mix old and new syntax in the same object.
Fixes: QTBUG-93603
Change-Id: I27cb0a925baafa68715d9a5e2c505d963b4a390f
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
(cherry picked from commit 3cd0000b70f031116dcb7d907b48f56e0bc9f9e9)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/qml/types/qqmlconnections.cpp | 6 |
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) : |