[Qt-interest] Shrinking parent widget when child hidden
George Ryan
gryan at akoostix.com
Thu Apr 1 18:07:58 CEST 2010
Hello,
I have a dialog that I want to have vertically resize automatically when
I hide one of its children in a vertical layout. For example:
---------
| ----- |
| | W1 | |
| ----- |
| ----- |
| | W2 | |
| ----- |
---------
to
---------
| ----- |
| | W2 | |
| ----- |
---------
I have tried various combinations of layouts and setting minimum size
hints, but I haven't yet come across a good solution.
Has anyone done this before or have a good idea on how to implement it?
Thanks!
George
More information about the Qt-interest-old
mailing list