Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.15.2, 6.0.0
-
None
Description
When using a Connections type in QML I'm unable to access the signal parameter:
import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick 2.12 import QtQuick.Window 2.12 Window { width: 640 height: 480 visible: true title: qsTr("Hello World") Box { id: box onExampleChanged: print("Box: ", example) } Connections { target: box function onExampleChanged(example) { print("Connections: ", example) } } }
// Box.qml
import QtQuick 2.0 Item { id:root property var example: "test" Timer { running: true onTriggered: root.example = "box" } }
prints:
qml: Box: box
qml: Connections: undefined
I find this strange (even a bug) because in c++ it always carries the changed value as parameter...
Tested with Qt 5.15.2 and 6.0