Results 1 to 4 of 4

Thread: GIF images in qt resource file

  1. #1
    Join Date
    Oct 2011
    Posts
    48
    Thanks
    6
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default GIF images in qt resource file

    Hi,

    I have done an application where i am using a gif image to show some progress of some operation. The Gif Image is added to qt resource file and with qt creator , if i run the application, the image is displayed on window. But if I take the exe to another machine , the images are not loaded to window. Even the jpeg images are also not loaded. For me only bmp images are working. Kindly advice the method to use gif and jpeg images.


    Thanks,


  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: GIF images in qt resource file

    Most image formats are supported by plugins. You can place it on the target computer.

  3. The following user says thank you to Lesiok for this useful post:

    A9am (25th November 2013)

  4. #3
    Join Date
    Oct 2011
    Posts
    48
    Thanks
    6
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: GIF images in qt resource file

    I have copied the qgif.dll and qgifd.dll to the same folder of exe in the other machine. Still the images are not displayed.


    Added after 1 11 minutes:


    Hi,

    The qgifd.dll should be placed in a folder imageformats in the same directory of exe. It worked ..


    Thanks.
    Last edited by A9am; 25th November 2013 at 08:45.

  5. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: GIF images in qt resource file

    You need to copy plugins in the folder imageformats ...
    See the Qt plugins directory for images, and you need the same directory structure on target machine (imageformats should be in the directory of your executable)

    Hope this helps

  6. The following user says thank you to aamer4yu for this useful post:

    A9am (18th December 2013)

Similar Threads

  1. Loading images from resource files in webkit
    By redserpent7 in forum Qt Programming
    Replies: 1
    Last Post: 21st January 2015, 13:01
  2. Replies: 1
    Last Post: 10th February 2011, 20:32
  3. How to add 50 MB of images to resource file ??????
    By prajnaranjan.das in forum Newbie
    Replies: 5
    Last Post: 24th December 2010, 04:56
  4. QWebView with .css, .js and images in a resource file...
    By sublimer in forum Qt Programming
    Replies: 1
    Last Post: 14th September 2010, 12:27
  5. Release build fails to find some resource images
    By MrGarbage in forum Installation and Deployment
    Replies: 3
    Last Post: 8th December 2007, 16:04

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.