Yes, you are right. I did not know that I must use QLabel to display image. Now it works. Thank you very much!