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/") } } }
Attachments
For Gerrit Dashboard: QTBUG-45182 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
109261,2 | Action: Queue 'triggered' signal emission | 5.5 | qt/qtquickcontrols | Status: ABANDONED | 0 | 0 |
109262,1 | Action: Queue 'triggered' signal emission | 5.4 | qt/qtquickcontrols | Status: ABANDONED | 0 | 0 |
109325,7 | Menu: Separate dismiss and destroy actions | 5.4 | qt/qtquickcontrols | Status: MERGED | -2 | 0 |
109592,2 | iOS: check if Qt has an active window before scrolling to cursor | 5.5 | qt/qtbase | Status: MERGED | +2 | 0 |
126451,4 | Menus: Clean popup hide and destroy logic | 5.5 | qt/qtquickcontrols | Status: MERGED | +2 | 0 |
168384,2 | Menus: Clean popup hide and destroy logic | tqtc/vxworks-5.5 | qt/tqtc-qtquickcontrols | Status: MERGED | +2 | 0 |