void QWidget::render(QPaintDevice * target, const QPoint & targetOffset = QPoint(), const QRegion & sourceRegion = QRegion(), RenderFlags renderFlags = RenderFlags( DrawWindowBackground | DrawChildren ))
If sourceRegion is a null region, this function will use QWidget::rect() as the region, i.e. the entire widget.