[PyQt] Force the ratio of a widget

Frédéric frederic.mantegazza at gbiloba.org
Wed Jan 14 14:41:19 GMT 2009


Le 14/1/2009, "Doug Bell" <dougb at bellz.org> a écrit:

>Calling resize inside a resizeEvent is not a good idea.  You should let
>the layout do the work.
>
>Try overriding QLayoutItem.hasHeightForWidth() and
>QLayoutItem.heightForWidth(w) in a custom layout.

Thanks :o)

--
   Frédéric



More information about the PyQt mailing list