Quantcast
Channel: Qt DevNet forums: Qt WebKit
Viewing all articles
Browse latest Browse all 542

Display local flash.swf

$
0
0
Hi Guys I Have to display several local flash files in qml/webkit. At this point i fail while loading the first one for no particular reason. The Setup is easy:  WebView {         anchors.fill: parent         //url: Qt.resolvedUrl(localFile)         html: "<html><head><title>Hello, world!</title></head>" +               "<body>Hello, world!</body>"+               "</html>"       } Trying to load the file directly (row 3.) will show me a grey background and nothing more. Loading html directly will give me: file://...main.qml:34:9: Cannot assign to non-existent property "html"              html: "<html><head><title>Hello, world!</title></head>" +              ^ I could create a local html file embedding the flash but that would be a pain in the ass and way too much work for this simple problem. Any idea? Edit: I found that Webkit provides a method called loadHtml() which is supposed to bypass url und directly display plain html. However this method is not found with the same “non-existent property”-error explained above. Maybe i have to add something to the .pro file?

Viewing all articles
Browse latest Browse all 542

Trending Articles