#设置最小化与最大化按钮
self.setWindowFlags(QtCore.Qt.Window)
参考:
file:///D:/Program Files (x86)/Python27/Lib/site-packages/PyQt4/doc/html/qt.html#WindowType-enum
Qt.Widget
0x00000000 This is the default type for QWidget. Widgets of this type are child widgets if they have a parent, and independent windows if they have no parent. See also Qt.Window and Qt.SubWindow.
Qt.Window
0x00000001 Indicates that the widget is a window, usually with a window system frame and a title bar, irrespective of whether the widget has a parent or not. Note that it is not possible to unset this flag if the widget does not have a parent.
Qt.Dialog
0x0000

本文介绍了PyQt4中如何管理和显示窗口的最小化与最大化功能。重点探讨了Qt.Widget、Qt.Window、Qt.Dialog、Qt.Sheet、Qt.Drawer、Qt.Popup和Qt.Tool等窗口类型在实现窗口操作中的应用。
最低0.47元/天 解锁文章
1234

被折叠的 条评论
为什么被折叠?



