Results 1 to 2 of 2

Thread: Trouble with QPixmap in windows 8.

  1. #1
    Join Date
    Nov 2012
    Posts
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Trouble with QPixmap in windows 8.

    Hey guys,

    I'm having trouble to load a .JPG image using QPixmap(imagePath).
    It works fine in MAC and Windows 7. But, it's not working on a Windows 8. It loads an empty image. That only happens with .JPG. Has anyone tried loading a JPG with QPixmap using windows 8?

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Trouble with QPixmap in windows 8.

    Do you have the correct plugin for reading JPG files installed along with your application? Without plugins, only a small number of image formats is internally supported by Qt. All others require a plugin, which has to be installed in the correct location with respect to your application (usually in a plugins/imageformats folder inside the folder where your app lives).

    On a development machine, Qt will look in Qt's main installation folder for plugins, so this can explain why your app works on some machines and not others. If you don't have a Qt development environment installed on the Windows 8 machine, then Qt has no default place to look for plugins.

Similar Threads

  1. Replies: 2
    Last Post: 2nd November 2011, 03:08
  2. Trouble compile QIBASE plugin on Windows
    By estanisgeyer in forum Newbie
    Replies: 2
    Last Post: 25th May 2011, 11:55
  3. Trouble configuring Qt 4.7.2 Windows Binary
    By jshafferman in forum Installation and Deployment
    Replies: 3
    Last Post: 3rd May 2011, 18:26
  4. Trouble deploying on Windows
    By kiss-o-matic in forum Installation and Deployment
    Replies: 6
    Last Post: 17th October 2010, 06:42
  5. QPixmap -> HICON trouble.
    By krivenok in forum Qt Programming
    Replies: 1
    Last Post: 11th August 2006, 15:51

Tags for this Thread

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.