[Qt-interest] dock widget expansion
Frederic Tingaud
tingaud at gostai.com
Tue Feb 16 12:05:59 CET 2010
Hi,
I already spent some time on this problem, but I cannot figure out where
it comes from:
In my main window, I have a complex widget in a dock widget. I am pretty
sure every element composing this widget have a size policy set to
"preferred" and small minimumSizes.
My central widget has the same minimumSize than the dock widget
minimumSizeHint, a bigger sizeHint and I tried setting the sizePolicy to
Expanding or Preferred, and setting stretch factors, but no matter what,
the central widget appears at its minimum size while the dock widget is
expanded. I do not want to input hard-coded sizes and I don't want to
use a MinimumExpanding sizePolicy, because I want the user to be able to
resize everything freely, but I assume there is a clean way to resolve
this problem.
As any one encountered and resolved such a problem ?
Frederic Tingaud
More information about the Qt-interest-old
mailing list