Results 1 to 4 of 4

Thread: refresh a QLabel and QImage

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: refresh a QLabel and QImage

    Your code keeps creating a new label every time it want to update the image. You should be calling setPixmap() on the same QLabel every time.

  2. The following user says thank you to ChrisW67 for this useful post:

    rafik (24th January 2016)

Similar Threads

  1. Can't refresh QLabel's Pixmap properly
    By deltamac in forum Newbie
    Replies: 3
    Last Post: 7th June 2015, 12:28
  2. refresh QLabel text
    By dragonprog in forum Qt Programming
    Replies: 4
    Last Post: 4th June 2015, 06:57
  3. refresh image in a Qlabel
    By prkhr4u in forum Newbie
    Replies: 12
    Last Post: 22nd October 2013, 07:49
  4. How do I set an QImage on a QLabel?
    By Maluko_Da_Tola in forum Newbie
    Replies: 4
    Last Post: 3rd August 2010, 06:03
  5. display QImage on QLabel
    By akasi in forum Qt Programming
    Replies: 2
    Last Post: 23rd September 2008, 22:48

Tags for this Thread

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.