[PyKDE] ch.10 layout example

Boudewijn Rempt boud at valdyas.org
Sun Jul 7 15:04:01 BST 2002


On Sunday 07 July 2002 12:52, Hans-Peter Jansen wrote:
> Hi Boudewijn,
>
> studying your layout example leaves me with some questions:
>  - what's the reason of removing and adding the widgetLayout?
>    I've commented out this, because I didn't understand it,
>    and it still works (but maybe leaking?).
>  - I don't understand Qt's sizing policy. I tried to make it
>    growing/shrinking to the real amount of space needed, but
>    - have no idea, how Qt specify it's initial size?
>    - it seems to be necessary to play games with sizeEvent
>      to get the real current size, because the "grow" resize
>      happens in Qts main loop. As a result, the way, I patched
>      it in your example is 'one behind' on every shrink. May you
>      have some better ideas?
>
> Please be patient with me about those silly questions, but
> I try to get some fundamental understanding in this topic.
>

I'll look into it tomorrow, since I'm now busy cooking a rather
large meal :-).

-- 
Boudewijn Rempt | http://www.valdyas.org




More information about the PyQt mailing list