pythonresizepyqtqdialog

PyQt: Prevent Resize and Maximize in QDialog?


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


Solution

  • Use setFixedSize:

    mydialog.setFixedSize(width, height)