PyQt: Prevent Resize and Maximize in QDialog?

pyqt, python, qdialog, resize

Solution

Use setFixedSize:

mydialog.setFixedSize(width, height)

Problem

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

Original source