[PyQt] Re: dialogs and extentions

Wim Verhavert wim.verhavert at gmail.com
Wed Oct 29 14:39:17 GMT 2008


I already found out that you can set the orientation with a call to
'setOrientation(Qt.Vertical)'. That solves my problem for now. But
while I was searching for a solution I found the following:
http://doc.trolltech.com/4.4/qdialog-obsolete.html. There they state
that my solution is obsolete and "we strongly advise against using
them in new code". But the new method they propose, i.e. simply hide
or show the widgets, will not resize my dialog properly (it will only
grow and not shrink). I played around with this for a while but
couldn't get it to working. Has anybody done it using this new method.
Does it shrink properly again? How do you do it?

Thanks!


On Wed, Oct 29, 2008 at 11:22 AM, Wim Verhavert <wim.verhavert at gmail.com> wrote:
> Hi all,
>
> I am confused concerning extension dialogs. The doc's say you can use
> the 'setExtention()' and 'showExtention()' methods, but this makes
> your dialog extent to the right in stead of  the bottom. The bundled
> PyQT examples on the other end set the 'extention' property directly
> and play with the 'setVisible()' method. While this allows my dialog
> to extend towards the bottom, it will not resize my dialog on closing
> the extension (my dialog is not shrink properly) unless I put my
> dialog's layout sizeConstraint to fixed size. But I don't want this
> either. I want my dialog to extend to the bottom and still allow for
> resizing.
>
> Can anybody clarify how this functionality works?
>
> Many thanks in advance,
>
> --
> Wim
>


More information about the PyQt mailing list