Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.8, 5.12
Description
import QtQuick 2.8 import QtQuick.Window 2.2 import Qt.labs.platform 1.0 Window { id: window width: 400 height: 400 visible: true MouseArea { anchors.fill: parent acceptedButtons: Qt.RightButton // Doesn't work onPressed: contextMenu.open() // Works // onClicked: contextMenu.open() } Menu { id: contextMenu MenuItem { text: qsTr("Copy") } MenuItem { text: qsTr("Cut") } MenuItem { text: qsTr("Paste") } } }
Full error message:
(untitled:26215): GLib-GObject-CRITICAL **: g_object_set_data: assertion 'G_IS_OBJECT (object)' failed