[Solved] QWidget::minimumSize vs QWidget::minimumSizeHint
-
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
-
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.
-
Ah, I see. QWidget::minimumSize (and maximumSize) actually limits what can through QWidget::setGeometry().
Thanks