Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.7
-
None
Description
The following example demonstrates the issue:
import QtQuick 2.0 Item { width: 400; height: 400 MouseArea { id: mouseArea anchors.fill: parent // WORKS onClicked: console.log("clicked", mouse.x, mouse.y) // WORKS //onClicked: function(m) { console.log("clicked", m.x, m.y) } } Connections { target: mouseArea // WORKS //onClicked: console.log("connections clicked", mouse.x, mouse.y) // BROKEN onClicked: function(m) { console.log("clicked", m.x, m.y) } } }
The "named parameter" version does not work under Connections – no error is generated, but neither is the console.log called.
Attachments
For Gerrit Dashboard: QTBUG-50328 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
223735,5 | Handle function expressions as signal handlers | 5.11 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
223922,2 | Handle function expressions in SignalTransition | 5.11 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
224201,5 | Handle function expressions as signal handlers | 5.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |