Pyqt5 method of forbidding window maximization and window stretching

Time:2019-11-6

As follows:

Add in def init (self): function

self.setFixedSize(self.width(), self.height())

The above pyqt5 method to disable window maximization and window stretching is all the content shared by Xiaobian. I hope it can give you a reference and support developepaer.