Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.4.1
-
23d5540ee (dev), a354d91b8 (dev)
Description
Compiling
import QtQuick import QtQuick.Controls.Basic Window { width: 640 height: 480 visible: true title: "Qt" Action { id: downloadAction onTriggered: source => { console.log(source.pressX) } } MenuItem { id: menuItem action: downloadAction text: qsTr("&Download") } }
claims
Warning: main.qml:12:9: Signal handler for "onTriggered" has more formal parameters than the signal it handles. onTriggered: source => { console.log(source.pressX) } ^^^^^^^^^^^
. Removing source silcences the warning, but then there's no source, of course.
At least the documentation reads as if there should be one and the code works by outputting the pressX coordinate. Seems to be compiler related.
Attachments
For Gerrit Dashboard: QTBUG-108762 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
444743,7 | QmlCompiler: Ignore cloned signals when analyzing signal handlers | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
444865,5 | moc: Output the "cloned" flag for methods | dev | qt/qtbase | Status: MERGED | +2 | 0 |
444899,3 | qmltyperegistrar: Propagate the "isCloned" flag through qmltypes | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |