还原,要保留上下左右边界,否则没有边框无法调整
(self)
| 204 | self.layout().setContentsMargins(0, 0, 0, 0) |
| 205 | |
| 206 | def showNormal(self): |
| 207 | """还原,要保留上下左右边界,否则没有边框无法调整""" |
| 208 | super(FramelessWindow, self).showNormal() |
| 209 | self.layout().setContentsMargins( |
| 210 | self.Margins, self.Margins, self.Margins, self.Margins) |
| 211 | |
| 212 | def eventFilter(self, obj, event): |
| 213 | """事件过滤器,用于解决鼠标进入其它控件后还原为标准鼠标样式""" |
no outgoing calls
no test coverage detected