Moving from SDL to qt for graphics

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).

Any help would be great!
I'm not too familiar with Qt, but maybe QWidget::update
Thanks for sharing knowledge.
Topic archived. No new replies allowed.