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.