Results 1 to 2 of 2

Thread: Question about updating an image on screen

  1. #1
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Thanks
    44
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Talking Question about updating an image on screen

    Hi all, I've implemented an image viewer. The image that is viewed should be updated everytime because this image could be modified while the image is shown in other parts of my program (an image editor for example). Currently, I've implemented it with a timer: I save the date when the image is shown on screen and start the timer. Then, at every 5 seconds the timer triggers a signal connected to a slot where I look up if the date of the last modification of the image is later than the date when the image has been updated for the last time. I would like to know if this is the best way to implement this behaviour or if anybody suggests me another. Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Question about updating an image on screen

    You can also use a signals to notify all widgets/objects about the change.

Similar Threads

  1. can Qlabel display a series of image one by one ?
    By jirach_gag in forum Qt Tools
    Replies: 3
    Last Post: 11th August 2008, 16:36
  2. Updating a data in QTableView question
    By MarkoSan in forum Qt Programming
    Replies: 5
    Last Post: 6th June 2008, 12:45
  3. Finding marks on scanned image for alignment
    By caduel in forum Qt Programming
    Replies: 1
    Last Post: 23rd September 2007, 03:10
  4. Open image in full screen
    By jeetu_happy in forum Qt Programming
    Replies: 3
    Last Post: 23rd January 2007, 10:03
  5. Question about QImages
    By SkripT in forum Qt Programming
    Replies: 14
    Last Post: 27th January 2006, 12:45

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.