Results 1 to 4 of 4

Thread: Problem Loading GIF

  1. #1
    Join Date
    Nov 2006
    Posts
    15

    Default Problem Loading GIF

    i've tried to load a gif image in a QImage or QPixmap but it failed

    Qt Code:
    1. m_pImage = new QPixmap();
    2. bool suc = m_pImage->load(m_strFileName);
    To copy to clipboard, switch view to plain text mode 

    Qt Code:
    1. m_pImage = new QImage();
    2. bool suc = m_pImage->load(m_strFileName);
    To copy to clipboard, switch view to plain text mode 

    please help fellows

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Problem Loading GIF

    make sure your qt is configured with the gif plugin
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    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: Problem Loading GIF

    GIF support is disabled by default due to license issues. You will have to recompile Qt with GIF support turned on. See "configure -help" for more details.

    Edit: Sorry, my intention was not to repeat.
    J-P Nurmi

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Problem Loading GIF

    I was actually considering asking the trolls why is this still so, since the patent for GIF is expired.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. plugin loading problem
    By naresh in forum Qt Programming
    Replies: 6
    Last Post: 9th June 2007, 19:05
  2. QMYSQL loading problem
    By ridgesoft in forum Qt Programming
    Replies: 7
    Last Post: 20th May 2007, 14:47
  3. QTimer problem ... it runs but never triggs
    By yellowmat in forum Newbie
    Replies: 4
    Last Post: 4th July 2006, 12:54
  4. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 21:36
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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.