MCPcopy Create free account
hub / github.com/PyQt5/PyQt / showMaximized

Method showMaximized

Demo/Lib/FramelessWindow.py:201–204  ·  view source on GitHub ↗

最大化,要去除上下左右边界,如果不去除则边框地方会有空隙

(self)

Source from the content-addressed store, hash-verified

199 super(FramelessWindow, self).move(pos)
200
201 def showMaximized(self):
202 """最大化,要去除上下左右边界,如果不去除则边框地方会有空隙"""
203 super(FramelessWindow, self).showMaximized()
204 self.layout().setContentsMargins(0, 0, 0, 0)
205
206 def showNormal(self):
207 """还原,要保留上下左右边界,否则没有边框无法调整"""

Callers

nothing calls this directly

Calls 1

showMaximizedMethod · 0.45

Tested by

no test coverage detected