Qt does not load JPG , just PNG

前端 未结 1 995
遇见更好的自我
遇见更好的自我 2021-01-13 02:13

I work with my colleagues on the same project on Windows 7 64 bit version, Visual Studio 2008.

They load JPG and they work. Through QPixmap and Stylesheets. And wor

相关标签:
1条回答
  • 2021-01-13 02:44

    Your executable is missing the jpg plugin. Optional means, that if your executable doesn't find the plugins (dlls) it will start, but without loading these image formats. It is the same with a lot of qt features (fe: slqdrivers)

    You will find the folder "imageformats" in C:\Qt\4.8.4\plugins (replace your installation dir and version), copy it to your executable path and it will show jpgs.

    Probably, some environmental variables of your colleagues differ a bit from yours.

    Take care with Qt plugins and the distribution of your application.

    0 讨论(0)
提交回复
热议问题