Results 1 to 4 of 4

Thread: Application fails to load gif/jpeg graphic on PC without QT

  1. #1
    Join Date
    Jan 2009
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows

    Question Application fails to load gif/jpeg graphic on PC without QT

    QT4.6.1
    QtCreator 1.3.1
    windows 7, windows XP

    In my application I'm loading graphic using qrc file: e.g. setPixmap(QPixmap(tr(":wndicons/close_icon.gif")));
    All works fine on machine where I have QT installed.

    When I try to run my app on "clean" PC it fails even if I copy all possible qt dlls to my application exe folder including qgif4.dll. The program runs fine but showing only png images. What Im missing here?

  2. #2
    Join Date
    Jan 2009
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Application fails to load gif/jpeg graphic on PC without QT

    the problem solved!

    qgif4.dll have to be placed in subfolder "imageformats"

  3. #3
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Application fails to load gif/jpeg graphic on PC without QT

    Maybe you should put them in the plugins directory instead :-)

  4. #4
    Join Date
    Apr 2010
    Location
    Rostov-na-Donu, Russia
    Posts
    153
    Thanks
    2
    Thanked 26 Times in 23 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Application fails to load gif/jpeg graphic on PC without QT

    Quote Originally Posted by fatjuicymole View Post
    Maybe you should put them in the plugins directory instead :-)
    Quote from Deploying an Application on Windows
    note that each type of plugin should be located within a specific subdirectory (such as imageformats or sqldrivers) within your distribution directory

Similar Threads

  1. WekKit won't load JPEG images.
    By andrem in forum Qt Programming
    Replies: 4
    Last Post: 10th December 2008, 00:24
  2. custom plugin load fails...
    By raman_31181 in forum Qt Tools
    Replies: 3
    Last Post: 3rd July 2008, 09:37
  3. designer plugin fails to load
    By ModeZt in forum Qwt
    Replies: 6
    Last Post: 4th February 2008, 21:08
  4. [mac] QImage.load fails
    By snoopy67 in forum Qt Programming
    Replies: 4
    Last Post: 7th November 2007, 14:06

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.