Did you reimplement the paint event for your widget? Does the class contain Q_OBJECT macro?