Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-45182

REG [5.3.2-5.4.1] Opening external url from Menu causes crash

    XMLWordPrintable

Details

    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

        1. QTBUG-45182_2.zip
          7 kB
          Qt Support
        2. QTBUG-45182.zip
          1 kB
          Qt Support
        3. Screen Shot 2015-03-30 at 14.08.30.png
          119 kB
          Qt Support
        For Gerrit Dashboard: QTBUG-45182
        # Subject Branch Project Status CR V

        Activity

          People

            richard Richard Moe Gustavsen
            qtcomsupport Qt Support
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes