Signal handler not called in qmlscene
Unsolved
QML and Qt Quick
-
Hi all,
The following snippet uses PointHandler to track touch events. It is running normally on the target device (embedded device with touchscreen, executing Qt (C++) application), but calls only the direct signal handler testing on my laptop with qmlscene.
import QtQuick 2.12 Item { id: root Rectangle { anchors.fill: parent PointHandler { id: handler property alias position: handler.point.position onPositionChanged: function () { console.log("xxx") } } } Canvas { anchors.fill: parent Connections { target: handler function onPositionChanged() { console.log("yyy") } } } }
Running the code above with qmlscene and clicking into the window results in logging only 'xxx' rows:
$ qmlscene tmptest.qml qml: xxx qml: xxx qml: xxx [...]
Am I doing something wrong, or is it a bug?
Ubuntu 20.04
Package: libqt5qml5
Version: 5.12.8-0ubuntu1Package: qmlscene
Version: 5.12.8-0ubuntu1Thanks,
Ferenc