Results 1 to 2 of 2

Thread: QImage and QImageReader refuse to load any valid JPEGs in release build

  1. #1
    Join Date
    Apr 2011
    Posts
    8
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default QImage and QImageReader refuse to load any valid JPEGs in release build

    Greetings.

    The problem is as described in a title: QImageReader.canRead() and QImage.load() return false when my test app (Windows platform) is linked with release QtCore and QtGui dlls, while it works fine in debug. BMP files are loaded OK in any configuration,
    I've tried 3 versions of QtCore and QtGui dlls: the ones from official installer (compiled with MSVC2008, x86), compiled with MSVC2010 x64, and compiled with ICC x64.
    I have also tried giving my app with the official 2008 x86 dlls to my friend, he reported the same problem. We both use Windows 7, if that even matters. Qt version is 4.7.3.

    Any ideas are appreciated. Thanks in advance.
    Last edited by Violet Giraffe; 23rd July 2011 at 17:37.

  2. #2
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: QImage and QImageReader refuse to load any valid JPEGs in release build

    I doubt that the problem is with the libraries.

    I would try setting the project to 'release' mode, doing a thorough 'make clean' and 'make', and see what happens.Also, make sure the correct image plugins are in place.

Similar Threads

  1. [Qt4] How to load Url image into QImage?
    By Gonzalez in forum Qt Programming
    Replies: 6
    Last Post: 13th October 2014, 10:10
  2. Replies: 0
    Last Post: 12th March 2010, 22:01
  3. [mac] QImage.load fails
    By snoopy67 in forum Qt Programming
    Replies: 4
    Last Post: 7th November 2007, 14:06
  4. Replies: 2
    Last Post: 7th November 2006, 12:49

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.