Also you are missing a call to update() in updatePixmap().

Cheers,
_