What I am trying to do is render a qwidget onto a different window (manually using a QPainter)
I have a QWidget (w) with a layout and a bunch of child controls. w i
Try with the QWidget::sizeHint() method, which is supposed to return the size of the widget once laid out.
QWidget::sizeHint()