Quote Originally Posted by aamer4yu View Post
One mistake..
That was not a mistake. That was left as an exercise for the reader.

always specify a size for the pixmap / image while creating it.
Something like - QPixmap pix(600,480);
You cannot paint on null pixmap !!
You PASSED!!