I'm fairly used to the paradigm in SDL of changing the location of an object and then redrawing everything.
Is this the same in Qt?
At the moment I have a QDialog where I'm using Qpainter to draw objects but I can't find out how to redraw both the background (dialog window) and the object ( a rect).