Results 1 to 10 of 10

Thread: Why doesn't PyQt4 support SWF files?

  1. #1
    Join Date
    Jul 2011
    Posts
    16
    Qt products

    Default Why doesn't PyQt4 support SWF files?

    Such a powerful framework, yet a swf files are not supporting inside the QWebview? Or do i have it all wrong?

    Isn't there GNASH for PyQt?

  2. #2
    Join Date
    Jul 2011
    Posts
    16
    Qt products

    Default Re: Why doesn't PyQt4 support SWF files?

    13 views and not a single reply. amazing.

  3. #3
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Why doesn't PyQt4 support SWF files?

    SWF with QWebview works "fine", or at least should (it's rely on installed plug-ins in system).
    I tested fancy browser (c++ no in PyQT but probably that doesn't make any diffrence) and on Win swf's played fine.
    Although on Linux x64 it didn't played probably due to missing plug-ins or misconfiguration of view (I have adobe betas flash player and swf load fine but don't play).
    Basically look int view settings and enable Plugins, i.e.:
    Qt Code:
    1. view->settings()->globalSettings()->setAttribute( QWebSettings::PluginsEnabled, true );
    2. view->settings()->globalSettings()->setAttribute( QWebSettings::JavaEnabled, true );
    3. view->settings()->globalSettings()->setAttribute( QWebSettings::JavascriptEnabled, true );
    4. view->settings()->globalSettings()->setAttribute( QWebSettings::AcceleratedCompositingEnabled, true );
    5. view->settings()->globalSettings()->setAttribute( QWebSettings::SiteSpecificQuirksEnabled, true );
    To copy to clipboard, switch view to plain text mode 
    In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
    The advance of computerization however, has not yet wiped out nations and ethnic groups.

  4. #4
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Why doesn't PyQt4 support SWF files?

    Quote Originally Posted by blanchoir View Post
    13 views and not a single reply. amazing.
    Why? Did you bother looking at any other post stats? If you had, you'd find that a 5% to 10% response rate relative to views is about average. In fact, that's true of pretty much every forum I've examined.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Why doesn't PyQt4 support SWF files?

    Especially considering the fact most of those 13 views are probably web spiders...
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    Jul 2011
    Posts
    16
    Qt products

    Default Re: Why doesn't PyQt4 support SWF files?

    Found the answer, its exactly what you guys said. Thanks everyone, sorry for not being patient, I feel stupid.



    I was actually looking for a Cover Flow widget and decided to get one in Flash and put it in a QWebView Widget.

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Why doesn't PyQt4 support SWF files?

    Not very efficient approach since there is a nice pure Qt implementation of cover flow available.

    http://code.google.com/p/pictureflow/
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  8. #8
    Join Date
    Jul 2011
    Posts
    16
    Qt products

    Default Re: Why doesn't PyQt4 support SWF files?

    Quote Originally Posted by wysota View Post
    Not very efficient approach since there is a nice pure Qt implementation of cover flow available.

    http://code.google.com/p/pictureflow/
    I know that, but it doesn't work with PyQt, its supported in the next release 0.2

    Theres no bindings for PyQt, you have to make your own. I tried qmake, make install, it says theres no pictureflow.sbf file found.


    Can I use PictureFlow with Python?

    The current stable version (0.1) does not offer Python support yet, expect this in the next version (0.2). Alternatively, you can use PyQt and SIP and generate the bindings by yourself. Please refer to PyQt and SIP documentations for details
    It says you can use PyQt, but how would i do that? I don't understand how to generate the bindings myself.

  9. #9
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Why doesn't PyQt4 support SWF files?

    As a last resort you can write a bit of C++ code that will expose a single C type function which will do what you want and I assume calling a C function from Python is quite easy. However getting proper bindings would surely be a better solution.

    Have you played with SIP?
    http://www.riverbankcomputing.co.uk/software/sip/intro
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  10. #10
    Join Date
    Jul 2011
    Posts
    16
    Qt products

    Default Re: Why doesn't PyQt4 support SWF files?

    thank you Wysota, you have been more than helpful. I will look into it.

Similar Threads

  1. Alpha Channel support is broken for GIMP png and bmp files
    By mschifter in forum Qt Programming
    Replies: 3
    Last Post: 25th June 2015, 21:52
  2. Replies: 3
    Last Post: 11th December 2010, 20:28
  3. Replies: 12
    Last Post: 5th July 2009, 16:03
  4. PyQt4 doesn't execute eventFilter()
    By akiross in forum Newbie
    Replies: 0
    Last Post: 29th October 2008, 01:18
  5. Handling mac text format files - support?
    By bnilsson in forum Qt Programming
    Replies: 0
    Last Post: 29th March 2008, 12:10

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.