新建一个窗体form1,禁用最大化,关闭按键 form1.setWindowFlags(QtCore.Qt.WindowMinimizeButtonHint) 转载于:https://www.cnblogs.com/eccut/p/11555949.html