UI crash while enabling the flash player in webview



  • in WebView the wrote the following line:
    settings.pluginsEnabled: true
    so it enabled the flash plugin!

    The problem is that, the url is of web conferences, which uses the flash plugin to enable video conference. When i am clicking on end call the ui is completly crashing and coming to login terminal. Even when i click quit i.e.,qml button in the case of conference it is going to login terminal.
    In the case of conference, only these two problems are occuring, other than that it is not crashing.
    what can be the problem? Is the problem is with qml ui or else with the flash plugin!
    Note: the only one line “settings.pluginsEnabled: true” causing the problem!

    1. I am also getting one more error as “ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused”

    the program is:
    main.qml
    —————
    import QtQuick 1.0
    import QtWebKit 1.0

    Rectangle { id:main width: 1280 height: 800 Button{ id: button height: 50 width: 100 anchors.centerIn: parent onButtonClicked: { console.log(“Mouse was clicked”); brow.visible = true; brow.urlString = “some url with flash plugin”; console.log(“url:”,brow.urlString); } } WebBrowser{ id: brow visible: false }
    }
    ——————————
    WebBrowser.qml:
    ——————————
    import QtQuick 1.1
    import QtWebKit 1.0

    Rectangle
    { id: webTray width: 1280 height: 800 property string urlString: “”
    Button { id: callaccept y: 0.01webTray.height anchors.right: webTray.right; anchors.rightMargin: 0.05webTray.width displayText: “Quit”; width: 0.05webTray.width; height: 0.04webTray.height; onClicked: { console.log(“clicked on quit”); brow.visible = false; brow.urlString = “” console.log(“browser is visible?:”,brow.visible); } } Rectangle { width: webTray.width; height: 2; color: “silver”; anchors.bottom: web.top; } height: 50 width: 100 anchors.centerIn: parent onButtonClicked: { WebView { id: web preferredWidth: webTray.width preferredHeight: webTray.height – 0.06webTray.height; y: 0.06webTray.height transformOrigin: Item.TopLeft settings.pluginsEnabled: true url: webTray.urlString smooth: false onAlert: console.log(message) } }

    Please help me out, I am really thankful for them. I am in solution from past 3days!! Thankyou



  • did you try to run your application in debugger mode of QtCreator. this might give a point were your app got crashed.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.