Results 1 to 15 of 15

Thread: Unable to load jpg on Mac OS

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2007
    Posts
    29
    Thanks
    8
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Unable to load jpg on Mac OS

    This code works perfectly on the pc, as well as on the mac but only for .png files. I've seen other threads on this, but none that address QImage loading on windows but not the macOS. I put the imageformats folder in the package too. It doesn't even work on the development machine. Any help is greatly appreciated!

    Sean

    Qt Code:
    1. QImage tempImage;
    2. if(tempImage.load(tempImageFileName))
    3. {
    4. /*
    5. /users/images/test.JPG does not work
    6. but
    7. /users/images/test.PNG does work
    8. */
    9. }
    10. else
    11. {
    12. QMessageBox::information(NULL, "Test QImage Load", "Unable to load image: " + tempImageFileName);
    13. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by wysota; 29th January 2008 at 11:43. Reason: missing [code] tags

Similar Threads

  1. Program not compiling on Fresh install of Leopard
    By dvmorris in forum Qt Programming
    Replies: 1
    Last Post: 22nd November 2007, 10:22
  2. Deploying debug Qt application - failed to load ODBC driver
    By sureshbabu in forum Installation and Deployment
    Replies: 1
    Last Post: 1st November 2007, 12:35
  3. Qt4 does not load JPG's.
    By Teuniz in forum Qt Programming
    Replies: 3
    Last Post: 3rd September 2007, 23:06
  4. Replies: 2
    Last Post: 13th September 2006, 09:11
  5. QProcess / system call not working under linux. Why?
    By johnny_sparx in forum Qt Programming
    Replies: 12
    Last Post: 11th March 2006, 00:32

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
  •  
Qt is a trademark of The Qt Company.