提交 7046b722 编写于 作者: 之一Yo's avatar 之一Yo

修复开关按钮指示器的抖动问题

上级 a376b9d9
...@@ -176,6 +176,7 @@ class SwitchButton(QWidget): ...@@ -176,6 +176,7 @@ class SwitchButton(QWidget):
def __initWidget(self): def __initWidget(self):
""" initialize widgets """ """ initialize widgets """
self.setAttribute(Qt.WA_StyledBackground) self.setAttribute(Qt.WA_StyledBackground)
self.setFixedHeight(37)
self.installEventFilter(self) self.installEventFilter(self)
# set layout # set layout
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册