Results 1 to 2 of 2

Thread: Local flashfile not playing in webView

  1. #1
    Join Date
    May 2009
    Posts
    10
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Local flashfile not playing in webView

    Hi

    If I select a flashfile from disc for the webView it does not play. If I upload the same flashfile to a webserver and input the url for it in the webView it plays.
    I can play the flashfile localy with both IE and Firefox.

    Anyone got any clue about why this is happening?

  2. #2
    Join Date
    May 2009
    Posts
    10
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Local flashfile not playing in webView

    Bump...anyone?

    Qt 4.5.2

    This works:
    Qt Code:
    1. ui.webView->settings()->setAttribute(QWebSettings::PluginsEnabled, true);
    2. ui.webView->setUrl(QUrl("http://www.3000gt.se/test/client.swf"));
    To copy to clipboard, switch view to plain text mode 

    Using a full path or resource does not work:

    Qt Code:
    1. ui.webView->setUrl(QUrl("file:///C:.../Resources/client.swf"));
    To copy to clipboard, switch view to plain text mode 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.