[Qt-interest] Please help me understand resizing...
Diego Schulz
dschulz at gmail.com
Fri Jul 24 00:21:22 CEST 2009
On Thu, Jul 23, 2009 at 3:31 PM, Sven Grunewaldt<strayer at olle-orks.org> wrote:
> Hi,
>
> I don't really know how to explain my problem, so I will describe what I
> want to do and attach a testcase which shows what I'm doing (and hopefully
> tells you what I'm doing wrong...)
>
> I have a QMainWindow with a QPushButton and a QPlainTextEdit inside a
> QVBoxLayout. When I click on the button, the QPlainTextEdit is hidden and I
> call resize(sizeHint()); to remove the unneeded space in the Layout. Sadly,
> this doesn't work. It seems like resize(...) is doing nothing at all.
> After clicking the button, it looks like this:
> http://www.abload.de/img/resize18brt.jpg
>
> But it should look like this:
> http://www.abload.de/img/resize2dbi0.jpg
>
> Maybe someone could look into the attached code and give me a hint what I
> should do.
There's a nice example in the docs that [I hope] you might find useful.
http://doc.trolltech.com/4.5/dialogs-extension.html
regards,
diego
>
> Regards,
> Sven Grunewaldt
More information about the Qt-interest-old
mailing list