Hello,

I wrote an application to display image.

class ImageView : public QWidget

I noticed that the program uses about 50% or more CPU usage all the time. By tracking the program, I noticed that the paintEvent of imageView is always called to redraw the screen. If I add Sleep( 500 ) in paintEvent(...), the CPU usage drops. But the program is slow.
I am wondering if there is any way to enhance it?

thank you!