PDA

View Full Version : Cannot get image from resources file on Windows 8.1 Pro



pipi
25th April 2014, 12:41
Hi,
I have a problem with loading a image from Qt resources on Windows 8.1 Pro (x86). This is my step:

1. I added and copy image from resource editor of Qt Creator.
10311

2. Copy link to code:
10313
There is always show QMessageBox "Load Failure". :(

I see in myResource.cpp ( in build folder):
10314

This problem doesn't occur on Windows 7. Please have me resolve it.
Thanks!

anda_skoa
25th April 2014, 13:16
Has your application access to the jpeg image plugin?

Cheers,
_

pipi
25th April 2014, 17:31
Hi anda_skoa,

How do my application access to the jpeg image plugin?

Thanks so much!

anda_skoa
26th April 2014, 10:29
Make sure the image format plugin is built and in a search path used by the application.

The plugin should be called something like qjpeg.dll and be in the imageformats plugin folder of your Qt and your deployment structure.

Cheers,
_

pipi
28th April 2014, 12:01
Thanks Anda_skoa.