Did you initialize the imageLabel pointer with a QLabel instance? Can you show us the code where you did that?