Can anyone give a clear explain of these 3 concept? What's the difference and how to use them?
size hint is the preferred size of the widget, layouts will try to keep it as close to this as possible.
size policy describes how the size may change when the preferred size cannot be used (can it stretch or shrink) see the QSizePolicy::Policy enum for a description of each.
size constraint are the maximumSize and minimumSize the widget can be.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With