Please nominate your Qt Champions for 2021!

How to show swf file in webview!

  • I have an application which has to load an swf in a qml application! I had successfully loaded youtube etc by specifying url in the url field inside webview! but when I add my swf file I cannot see my file loaded! How can I acheive this! This is my qml code!

    WebView {
    id: webview;
    x: 0
    y: 0
    anchors.horizontalCenter: parent.horizontalCenter
    anchors.verticalCenter: parent.verticalCenter
    url: "neo.swf";
    preferredWidth: parent.width
    preferredHeight: parent.height
    scale: 1
    smooth: false
    settings.pluginsEnabled: true;
    any help!

  • the file's location, where is? try it with the file path

Log in to reply