Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.4.1, 5.5.0 Alpha
-
Windows 7, iOS
-
https://codereview.qt-project.org/#/c/109592/, qtquickcontrols:de9145dcd904068256e28e130fdfda2e8014efe8, b27a01a86e614207025e569926d0c419857e8965
Description
In qml opening external url from Menu causes an assert:
ASSERT: "context() && engine()" in file qml\qqmlboundsignal.cpp, line 182
import QtQuick 2.0 import QtQuick.Controls 1.2 ApplicationWindow { title: qsTr("OpenFromMenuFails") width: 640 height: 480 visible: true Text { text: "Right-click for pop-up menu and press Open!" anchors.centerIn: parent } MouseArea { id: ma anchors.fill: parent onClicked: menuContext.popup() acceptedButtons: Qt.RightButton } Menu { id: menuContext MenuItem { text: qsTr("&Open") onTriggered: Qt.openUrlExternally("http://www.qt.io/") } } }