Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
6.10
-
None
Description
deviceType doesn't exist:
TapHandler { acceptedButtons: Qt.RightButton onPressedChanged: { if (pressed) contextMenu.popup() } } TapHandler { acceptedButtons: Qt.LeftButton onLongPressed: { print(point.device.deviceType) if (point.device.deviceType === PointerDevice.TouchScreen) contextMenu.popup() } }
Creator says:
/home/mitch/dev/temp/quick2/Main.qml:33: warning: Member "deviceType" not found on type "QPointingDevice" [missing-property]
and printing the property out results in "undefined".