PyQt - How to prevent a dialog being resized?

hdante hdante at gmail.com
Mon Mar 31 19:35:38 EDT 2008


On Mar 31, 7:12 pm, Kelie <kf9... at gmail.com> wrote:
> Hello,
>
> My question is as subject. I tried something like this and it doesn't
> work.
>
> def resizeEvent(self, event):
>     self.size = event.oldSize()
>
> Any hint?
>
> Thank you.

 You should preset size hints:

http://doc.trolltech.com/4.2/qwidget.html#minimumSize-prop



More information about the Python-list mailing list