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