<div>I'm trying to resize it while it is docked. The reason I'm trying to resize it is because I want to adjust the default 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't know it'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's size. <br>
</div>
<div>So when you say it's going to take the shape of the space it'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> </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'm not sure how to reference the containing frame since the parent object is the main window. </div>
<div> </div>
<div><br> </div>
<div class="gmail_quote">On Wed, Jan 21, 2009 at 8:16 AM, Darryl Wallace <span dir="ltr"><<a href="mailto:darryl.wallace@prosensus.ca">darryl.wallace@prosensus.ca</a>></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> I'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>
self.ui.dockWidget.setGeometry(x,y,w,h)<br>self.ui.dockWidget.resize(w,h)<br> 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>
It flickers momentarily at the new size and pops back, so it looks like it'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? If it's docked then it's going to take the shape of the space in which it is docked. If it is docked, I am wondering why you're trying to change it's shape.<br>
<br></div></div><font color="#888888">Darryl<br></font></blockquote></div><br>