Well, you are setting an null pixmap on the label, so it will by definition be empty.

You probably didn't see the "static" keyword in the signature of QPixmap::fromImage()

Cheers,
_