Results 1 to 13 of 13

Thread: refresh image in a Qlabel

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2013
    Location
    Bangalore,India
    Posts
    64
    Thanks
    21
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: refresh image in a Qlabel

    I have one GUI thread and one worker thread. Whenever I signal 'start' from GUI thread the processing starts in worker thread and whenever I signal 'stop' the processing in worker thread stops.
    After signalling 'stop' the image has to be refreshed in the GUI,
    But the image processing code of start and stop code has been enclosed in a while(1) loop,hence the thread never exits..but only on the application exit.
    I need to process the image every 2-3 seconds,hence i have let the thread run thorughout the application.

  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: refresh image in a Qlabel

    Ok, but that has no relation to the image processing being done at some point, i.e. when you signal stop.
    The thread stops accessing the image and you use it to update the label.

    Cheers,
    _

Similar Threads

  1. Where can Qlabel keep its image?
    By hind in forum Qt Programming
    Replies: 3
    Last Post: 15th July 2013, 03:11
  2. Image in QLabel not being displayed
    By P@u1 in forum Qt Programming
    Replies: 2
    Last Post: 4th July 2011, 09:47
  3. Replies: 2
    Last Post: 14th January 2011, 15:09
  4. Replies: 6
    Last Post: 21st September 2009, 10:55
  5. QLabel as an image.
    By RSX in forum Newbie
    Replies: 2
    Last Post: 4th April 2009, 19:22

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.