[Solved] QWidget::minimumSize vs QWidget::minimumSizeHint
-
wrote on 10 Apr 2015, 11:23 last edited by Jakob Schou Jensen
What is the difference between QWidget::minimumSize and QWidget::minimumSizeHint? Do they mean the same? If so, when should I prefer one over the other?
Thanks,
Jakob
-
wrote on 10 Apr 2015, 11:39 last edited by
HI and welcome to the devnet,
QWidget::minimumSizeHint
is used when you use the widget inside a layout,QWidget::minimumSize
is more generic (for example a resizable widget without layout).You have to choose the one to use depending to what you need.
-
wrote on 13 Apr 2015, 07:16 last edited by
Ah, I see. QWidget::minimumSize (and maximumSize) actually limits what can through QWidget::setGeometry().
Thanks
1/3