Results 1 to 7 of 7

Thread: GIF support in Windows ?

  1. #1
    Join Date
    Jan 2006
    Posts
    185
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default GIF support in Windows ?

    I have a program that shows images. Some of those images are ".GIF". So far, I have been able to show ".JPG" and ".PGN" images in different labels, but as soon as I want to show a ".GIF" image... it doesn't work.

    The .gif image is not shown.

    How can I tell Qt to show this type of images ?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: GIF support in Windows ?

    Have you built Qt with GIF support? If not, run configure -help for details. GIF support is disabled by default because of some copyright/patent/whatever issues.
    J-P Nurmi

  3. #3
    Join Date
    Jan 2006
    Posts
    185
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: GIF support in Windows ?

    I did not built Qt. I just downloaded the free version from the website. Qt 4.2.2.

    I am using it in Windows.

    I guess there should be a plug-in or something like that, so I don't have to compile Qt my self.

  4. #4
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: GIF support in Windows ?

    You have to recompile it by yourself because TT does not ship a binary package with enabled gif support due to licensing issues. Why not use png?

  5. #5
    Join Date
    Jan 2006
    Posts
    185
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: GIF support in Windows ?

    No problem, then I will just use JPG and PNG.

    I want it to use GIF, because some users may have their images in GIF format.

  6. #6
    Join Date
    Aug 2006
    Posts
    44
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: GIF support in Windows ?

    Quote Originally Posted by ChristianEhrlicher View Post
    You have to recompile it by yourself because TT does not ship a binary package with enabled gif support due to licensing issues. Why not use png?
    ...so after you run configure with -qt-gif you also need to recompile Qt? Dang. I was hoping it just turned on some stuff in the headers. *sigh*

    I thought the licensing issues had to do with the generation of GIF images rather than the display of them.

  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: GIF support in Windows ?

    Quote Originally Posted by Eldritch View Post
    ...so after you run configure with -qt-gif you also need to recompile Qt?
    Correct. Trolltech GIF support can't be compiled as a plugin (don't ask me why, there is simply no option to do that). You can always implement your own GIF plugin though.

    I thought the licensing issues had to do with the generation of GIF images rather than the display of them.
    No, you need a licence to use the LZW compression algorithm (the patent has not been lifted everywhere in the world yet). As you need to decompress the image to display it, it may require a licence...

Similar Threads

  1. Deploying with MySQL support under Windows
    By KShots in forum Installation and Deployment
    Replies: 1
    Last Post: 12th October 2006, 10:19
  2. 64-bit support in Windows?
    By jamos in forum Qt Programming
    Replies: 1
    Last Post: 12th May 2006, 17:29
  3. Replies: 4
    Last Post: 3rd April 2006, 09:22
  4. Problem building Qt4.1.0 with thread support on windows XP
    By pavithra in forum Installation and Deployment
    Replies: 1
    Last Post: 1st April 2006, 12:35
  5. Can't install Qt4.1 with SQL Support for ODBC in Windows XP
    By danieltruchsess in forum Installation and Deployment
    Replies: 1
    Last Post: 5th February 2006, 11:02

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.