PyQt: Prevent Resize and Maximize in QDialog?

Antoni4040 picture Antoni4040 · Dec 8, 2012 · Viewed 32.8k times · Source

How can I prevent a QDialog in PyQt from being resizeable or maximazable? I don't want the window's size changed.

Answer

Avaris picture Avaris · Dec 8, 2012

Use setFixedSize:

mydialog.setFixedSize(width, height)