Embedded JPG resources not loading in Qt application

╄→尐↘猪︶ㄣ 提交于 2019-11-27 22:27:54

It needs jpeg plugin to load images. If you have Qt installed they would be in %QTDIR%\plugins\imageformats.

Copy qjpeg4.dll into plugin folder on your thumb drive.

root/app.exe
root/qt.conf
root/plugins/imageformats/qjpeg4.dll

In qt.conf file set path to your plugins dir:

[Paths]
plugins=./plugins
stephenf555

While the most accurate answer is given already, rather than having to deploy more dlls and a folder structure, I find it much easier to just convert the images to png...no image format dlls etc. required if you use pngs.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!