Qt: How to force a hidden widget to calculate its layout?

前端 未结 6 743
北海茫月
北海茫月 2020-12-09 17:01

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

6条回答
  •  失恋的感觉
    2020-12-09 17:36

    Try with the QWidget::sizeHint() method, which is supposed to return the size of the widget once laid out.

提交回复
热议问题