PyQt - How to prevent a dialog being resized?

Chris Ortner chris.ortner at googlemail.com
Tue Apr 1 07:35:17 EDT 2008


On Apr 1, 12:12 am, 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.

If you use the Qt designer you can set the minimum- and maximum window
size to the same value, which disables resize as well. Tested with Qt4
on Linux 2.6. But I'm pretty sure that there could be a much cleaner
way to do this.



More information about the Python-list mailing list