提交 83e64d83 编写于 作者: 之一Yo's avatar 之一Yo

设置界面滚动组件自适应高度

上级 798c8ce7
......@@ -192,9 +192,9 @@ class SettingInterface(ScrollArea):
def __initWidget(self):
self.resize(1000, 800)
self.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
self.setViewportMargins(0, 120, 0, 0)
self.setViewportMargins(0, 120, 0, 20)
self.setWidget(self.scrollWidget)
self.scrollWidget.resize(self.width(), 1940)
self.setWidgetResizable(True)
# initialize style sheet
self.scrollWidget.setObjectName('scrollWidget')
......@@ -245,10 +245,6 @@ class SettingInterface(ScrollArea):
self.expandLayout.addWidget(self.updateSoftwareGroup)
self.expandLayout.addWidget(self.aboutGroup)
def resizeEvent(self, e):
self.scrollWidget.resize(self.width(), self.scrollWidget.height())
super().resizeEvent(e)
def __showRestartTooltip(self):
""" show restart tooltip """
w = ToastToolTip(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册