Results 1 to 5 of 5

Thread: Cannot get image from resources file on Windows 8.1 Pro

  1. #1
    Join Date
    Apr 2014
    Posts
    9
    Thanks
    2
    Qt products
    Qt4 Qt5 Qt/Embedded PyQt3 PyQt4
    Platforms
    Unix/X11 Windows Android

    Default Cannot get image from resources file on Windows 8.1 Pro

    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.
    qs1.png

    2. Copy link to code:
    qs2.png
    There is always show QMessageBox "Load Failure".

    I see in myResource.cpp ( in build folder):
    qs3.png

    This problem doesn't occur on Windows 7. Please have me resolve it.
    Thanks!
    Attached Images Attached Images
    Last edited by pipi; 25th April 2014 at 12:49.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Cannot get image from resources file on Windows 8.1 Pro

    Has your application access to the jpeg image plugin?

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    pipi (28th April 2014)

  4. #3
    Join Date
    Apr 2014
    Posts
    9
    Thanks
    2
    Qt products
    Qt4 Qt5 Qt/Embedded PyQt3 PyQt4
    Platforms
    Unix/X11 Windows Android

    Default Re: Cannot get image from resources file on Windows 8.1 Pro

    Hi anda_skoa,

    How do my application access to the jpeg image plugin?

    Thanks so much!

  5. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Cannot get image from resources file on Windows 8.1 Pro

    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,
    _

  6. The following user says thank you to anda_skoa for this useful post:

    pipi (28th April 2014)

  7. #5
    Join Date
    Apr 2014
    Posts
    9
    Thanks
    2
    Qt products
    Qt4 Qt5 Qt/Embedded PyQt3 PyQt4
    Platforms
    Unix/X11 Windows Android

    Default Re: Cannot get image from resources file on Windows 8.1 Pro

    Thanks Anda_skoa.

Similar Threads

  1. load image from resources in library
    By stevocz in forum Newbie
    Replies: 0
    Last Post: 11th July 2013, 09:21
  2. Replies: 5
    Last Post: 10th October 2012, 21:05
  3. Replies: 2
    Last Post: 14th January 2012, 22:39
  4. Problem with embedded resources under windows xp?
    By Kumosan in forum Installation and Deployment
    Replies: 1
    Last Post: 8th October 2008, 08:50
  5. converting Windows dialog resources to ui
    By Thor28 in forum Qt Tools
    Replies: 3
    Last Post: 21st April 2008, 15:13

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.