Results 1 to 3 of 3

Thread: Image in QLabel not being displayed

  1. #1
    Join Date
    Jun 2011
    Posts
    38
    Thanks
    8
    Thanked 1 Time in 1 Post

    Default Image in QLabel not being displayed

    Hi everyone,

    I added a QLabel in the designer and selected an image in the designer which I added to the resources (also with the designer).
    The exe file was ~300kb bigger after that (as expected).
    When I start the exe myself, everything is working.
    When I start the same exe with another pc, the image is not being displayed.

    Please help me :-)

  2. #2
    Join Date
    Feb 2011
    Location
    Romania
    Posts
    53
    Thanks
    1
    Thanked 11 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Image in QLabel not being displayed

    You should create "imageformats" directory on other PC near your executable, and copy necessary image plug-ins (jpeg or png or whatever your image is)

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

    P@u1 (4th July 2011)

  4. #3
    Join Date
    Jun 2011
    Posts
    38
    Thanks
    8
    Thanked 1 Time in 1 Post

    Default Re: Image in QLabel not being displayed

    Edit: I just recognized that I misunderstood you. I will try it now and give feedback later.
    Edit2: Its working now!
    Thanks!

Similar Threads

  1. Drawing over an image displayed on a QLabel
    By franco.amato in forum Qt Programming
    Replies: 10
    Last Post: 25th August 2010, 05:40
  2. can the image be displayed as it is in chips prog..
    By sh123 in forum Qt Programming
    Replies: 11
    Last Post: 7th February 2009, 08:15
  3. image not displayed ...
    By sh123 in forum Qt Tools
    Replies: 4
    Last Post: 15th December 2008, 13:07
  4. no image displayed on QGraphicsView
    By sincnarf in forum Qt Programming
    Replies: 9
    Last Post: 28th June 2007, 12:33
  5. JPEG Image isn't displayed!?
    By GodOfWar in forum Qt Programming
    Replies: 9
    Last Post: 16th April 2007, 15:01

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.