MCPcopy Index your code
hub / github.com/PyQt5/PyQt / setHeight

Method setHeight

Demo/Lib/FramelessWindow.py:90–100  ·  view source on GitHub ↗

设置标题栏高度

(self, height=38)

Source from the content-addressed store, hash-verified

88 self.windowNormaled.emit()
89
90 def setHeight(self, height=38):
91 """设置标题栏高度"""
92 self.setMinimumHeight(height)
93 self.setMaximumHeight(height)
94 # 设置右边按钮的大小
95 self.buttonMinimum.setMinimumSize(height, height)
96 self.buttonMinimum.setMaximumSize(height, height)
97 self.buttonMaximum.setMinimumSize(height, height)
98 self.buttonMaximum.setMaximumSize(height, height)
99 self.buttonClose.setMinimumSize(height, height)
100 self.buttonClose.setMaximumSize(height, height)
101
102 def setTitle(self, title):
103 """设置标题"""

Callers 4

__init__Method · 0.95
setRectMethod · 0.80
setTitleBarHeightMethod · 0.80
paintMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected