<div>I&#39;m trying to resize it while it is docked. The reason I&#39;m trying to resize it is because I want to adjust the default&nbsp;width of the form based on how many other windows are currently open in the main application and how big the monitor is. As a result, I won&#39;t know it&#39;s geometry until after the application starts. The dock widget is hidden until the user decides to open it. At the point it needs to know it&#39;s size. <br>
</div>
<div>So when you say it&#39;s going to take the shape of the space it&#39;s docked in, I had assumed that using the resize() function would propagate upwards and instruct the containing frame to redraw. Is that not the case?</div>

<div>&nbsp;</div>
<div>As far as going the other direction and resizing the containing frame, which would then force a resize on the dock widget, I&#39;m not sure how to reference the containing frame since the parent object is the main window. </div>

<div>&nbsp;</div>
<div><br>&nbsp;</div>
<div class="gmail_quote">On Wed, Jan 21, 2009 at 8:16 AM, Darryl Wallace <span dir="ltr">&lt;<a href="mailto:darryl.wallace@prosensus.ca">darryl.wallace@prosensus.ca</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello, 
<div>
<div></div>
<div class="Wj3C7c"><br><br>Marc Nations wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br>&nbsp;I&#39;m trying to resize a DockWidget after the application has started. I have tried all of the functions that I thought would resize it:<br>
&nbsp;self.ui.dockWidget.setGeometry(x,y,w,h)<br>self.ui.dockWidget.resize(w,h)<br>&nbsp;I tried with QSize and QGeometry as well. I also tried using the adjustSize() and a couple of others to see if it changed. I tried to call show() after to see if it would help, but nothing seems to work.<br>
&nbsp;It flickers momentarily at the new size and pops back, so it looks like it&#39;s being properly resizes and then something resets it back to the original size. Is this the correct way to resize the dock widget, and what is causing it to immediately change again?<br>
</blockquote></div></div>
<div>
<div></div>
<div class="Wj3C7c">Perhaps this is a silly question, but is it floating or is it docked? &nbsp;If it&#39;s docked then it&#39;s going to take the shape of the space in which it is docked. &nbsp;If it is docked, I am wondering why you&#39;re trying to change it&#39;s shape.<br>
<br></div></div><font color="#888888">Darryl<br></font></blockquote></div><br>