PDA

View Full Version : Qt displays only png, not jpeg/jpg



PstdEr
10th June 2013, 07:41
I have an application where i need to place some images on QPushBUttons.
i have different icons such as, jpeg, jpg and png.

Initially( a month ago) every thing was ok, and i got to display all images on buttons.
today i run the same application , but i can only see png images, i cannot see jpeg/jpg images on buttons

is there any dependency for displaying jpegs.


Regards,

karankumar1609
10th June 2013, 07:59
Hei,

PNG, JPG, AND JPEG images are supported by Qt if it link to their plugins.

You can check the image plugins in your Qt installed folder. C:\QtSDK\Desktop\Qt\4.8.1\mingw\plugins\imageforma ts

If your app successfully link to that libraries then check if the app uses the valid path for image files.

CHEERS

wysota
10th June 2013, 08:38
http://www.qtcentre.org/faq.php?faq=qt_images#faq_qt_missing_images

PstdEr
11th June 2013, 07:01
Thanks a lot, i will look into it.