Results 1 to 4 of 4

Thread: QMovie supports no animation formats (PyQt on Windows)

  1. #1
    Join Date
    May 2009
    Posts
    2
    Qt products
    Platforms
    MacOS X Windows

    Default QMovie supports no animation formats (PyQt on Windows)

    I am using PyQt GPLv4.4.3 for Python v2.5 on a Windows machine and am having trouble getting QMovie to support gif animations. The problem is that the function call QMovie.supportedFormats() returns an empty list (on Windows). But, on a Mac it returns the list [PyQt4.QtCore.QByteArray('gif'), PyQt4.QtCore.QByteArray('mng')]. So, I am unable to play gif animations using PyQt in Windows using QMovie.

    code:
    Qt Code:
    1. from PyQt4.QtGui import QMovie
    2. QMovie.supportedFormats()
    To copy to clipboard, switch view to plain text mode 

    On the QImageReader page ( http://www.riverbankcomputing.co.uk/...edImageFormats <http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qimagereader.html#supportedImageFormats> ) it says that "To configure Qt with GIF support, pass -qt-gif to the configure script or check the appropriate option in the graphical installer."

    So, I have tried things such as re-building Qt with the -qt-gif option, re-installing PyQt with all installation options selected, and installing newer versions of Python, PyQt, and SIP, but have been unsuccessful.


    Is there some way to configure PyQt with Windows so that QMovie will support some sort of animation? (if it was not configured that way by default)
    Any help would be very much appreciated. Thanks in advance.

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

    Default Re: QMovie supports no animation formats (PyQt on Windows)

    Are you sure your PyQt uses the version of Qt that you compiled yourself (the one with -qt-gif)? Also check if the GIF plugin was compiled and is available in $QTDIR/plugins/imageformats. It should be called qgif.dll or something like that.
    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.


  3. #3
    Join Date
    May 2009
    Posts
    2
    Qt products
    Platforms
    MacOS X Windows

    Default Re: QMovie supports no animation formats (PyQt on Windows)

    The qgif4.dll file does exist in $QTDIR/plugins/imageformats (C:\Qt\2009.02\qt\plugins\imageformats), so it seems that the GIF plugin was compiled and is available.

    I also found the file in another location: C:\Python25\Lib\site-packages\PyQt4\plugins\imageformats

    However, I am not sure PyQt is using the version of Qt that I compiled myself (the one with -qt-gif). How would I make sure that PyQt is using the version of Qt that I compiled myself?

    Thanks!

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

    Default Re: QMovie supports no animation formats (PyQt on Windows)

    It probably doesn't. The version of Qt bundled with Creator is 4.5 while your PyQt uses 4.4 so there is a good chance they are incompatible. You either need to build the plugin for 4.4 or you need to install/build PyQt for 4.5.
    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.


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.