Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7.3
-
None
-
b7d1fafe5 (dev), 0c53c4e3d (6.9), 5fdc9ac9c (6.8), e3d72a8fd (tqtc/lts-6.5)
Description
When following the docs here to connect signals together -
https://doc.qt.io/qt-6/qtqml-syntax-signals.html#signal-to-signal-connect
The following example produces an warning because of the missing arguments.
signal dismiss() onDismiss:console.log("dismissed signal") TapHandler { id: tapHandlerIcon } Component.onCompleted: { tapHandlerIcon.tapped.connect(dismiss) //connect custom signal }
results in
/ When matching arguments for Tag_QMLTYPE_70::dismiss():Too many arguments, ignoring 2
qml: dismissed signal
Attachments
For Gerrit Dashboard: QTBUG-131774 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
612056,4 | QObject: Suppress extra arguments on connections | dev | qt/qtdeclarative | Status: MERGED | +2 | +1 |
613090,2 | QObject: Suppress extra arguments on connections | 6.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
613182,2 | QObject: Suppress extra arguments on connections | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
613275,4 | QObject: Suppress extra arguments on connections | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |