I'd like to know how this function operate:

void drawBackground(QPainter *painter, const QRectF &rect);

I Know that this function is called when a repaint event is being.
Now.....what kind of settings has the painter?
How can I set them? and the rect?

I also don't understand why the "scene->setBackgroundBrush()" doesn't work when the virtual function drawBackground() is reimplemented(in a scene or view subclass).....

I'd also like to have some examples.....

excuse me for my poor english, i hope that you can understand me!!! Thanks a lot.