My Widget grows according to the widget added to it's layout, but when the size of it's children change (smaller) the widget won't shrink. I've tried updating it's geometry when it's children change but to no avail.
My Widget grows according to the widget added to it's layout, but when the size of it's children change (smaller) the widget won't shrink. I've tried updating it's geometry when it's children change but to no avail.
Doesn't fix it.Qt Code:
To copy to clipboard, switch view to plain text mode
Isn't that a size constraint?or set a size constraint on the widget's layout
I have, but none of them size contraints seem to do anything diferent than set maximum/minimum hight and widht.
I guess I have to do it all by hand.
Last edited by been_1990; 23rd January 2013 at 23:14.
Take a look at the Extension Example because it does exactly what you are asking for.
QLayout::SetFixedSize worked. Don't know why...
Bookmarks