Results 1 to 4 of 4

Thread: can Qlabel display a series of image one by one ?

  1. #1
    Join Date
    Jul 2008
    Posts
    12
    Thanks
    2

    Default can Qlabel display a series of image one by one ?

    Hi all, I'm currently develop an image processing program using Qt and OpenCV.
    In my program I want to display an image as they are process. In other word, after
    the user choose image to process my program will produce 10 new image. And I
    want to display those image one by one. So when user first choose an image it will
    display that image, after that it will change to another image that my algorithms
    produce and so on. I am using QLabel to display the image. using code like this

    Qt Code:
    1. // Show input Image
    2. ui.mainImageLabel->setPixmap(QPixmap::fromImage(image));
    3. ...
    4. ...
    5. process the image
    6. ...
    7. ...
    8. ui.mainImageLabel->setPixmap(QPixmap::fromImage(CContrastBitmap));
    9. ...
    10. ...
    11. process the image
    12. ...
    13. ...
    14. ui.mainImageLabel->setPixmap(QPixmap::fromImage(CExudateBitmap));
    15. ...
    16. ...
    17. ...
    18. ...
    To copy to clipboard, switch view to plain text mode 

    But when I run the program only the LAST image shown not one by one. How can I fix this problem ?

    Thank in advance

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: can Qlabel display a series of image one by one ?

    do you need a slide-show?

  3. #3
    Join Date
    Jul 2008
    Posts
    12
    Thanks
    2

    Default Re: can Qlabel display a series of image one by one ?

    Hello again, what do you mean by a "slide-show"

  4. #4
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: can Qlabel display a series of image one by one ?

    if you need to display images one by one you need to do delay after displaying next image.

Similar Threads

  1. QLabel size, for image display
    By C167 in forum Qt Programming
    Replies: 13
    Last Post: 25th October 2013, 17:09
  2. Display only PNG image on desktop
    By durbrak in forum Qt Programming
    Replies: 32
    Last Post: 15th March 2008, 22:55
  3. Replies: 13
    Last Post: 18th February 2008, 01:20
  4. QScrollArea display custom QLabel
    By spawnwj in forum Qt Programming
    Replies: 6
    Last Post: 6th December 2006, 04:38
  5. How and when to repaint a widget ?
    By yellowmat in forum Newbie
    Replies: 7
    Last Post: 3rd April 2006, 17:36

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.