On Mon, Oct 11, 2010 at 10:33 AM, Hans-Peter Jansen <span dir="ltr"><<a href="mailto:hpj@urpla.net">hpj@urpla.net</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Monday 11 October 2010, 16:17:21 John Wiggins wrote:<br>
> Hello,<br>
><br>
> I'm laying out part of the UI for my app using a QMainWindow with no<br>
> central widget and 4 dock widgets. I'd like the dock widgets to be<br>
> sized proportionally to each other but they seem to ignore the value<br>
> returned by sizeHint(). Am I missing something?<br>
<br>
</div>Without looking deeper into your code, there's something you should note<br>
(from the Qt QDockWidget documentation):<br>
<br>
Appearance<br>
[...]<br>
A QDockWidget acts as a wrapper for its child widget, set with<br>
setWidget(). Custom size hints, minimum and maximum sizes and size<br>
policies should be implemented in the child widget.<br>
<br>
Hth,<br>
Pete<br></blockquote><div><br>Hello Pete,<br><br> I've done all those things except setting a maximum size.<br><br>Also, I didn't post this useful info before:<br>python - 2.5.4<br>qt - 4.5.4<br>pyqt - 4.6.2<br><br>
- John<br></div></div>