From 83e64d83197582a3adfa10c6c8bb9b70c632f5b5 Mon Sep 17 00:00:00 2001 From: zhiyiYo <1319158137@qq.com> Date: Wed, 25 Jan 2023 10:20:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E7=95=8C=E9=9D=A2=E6=BB=9A?= =?UTF-8?q?=E5=8A=A8=E7=BB=84=E4=BB=B6=E8=87=AA=E9=80=82=E5=BA=94=E9=AB=98?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/settings/setting_interface.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/examples/settings/setting_interface.py b/examples/settings/setting_interface.py index a92b6b2..8f1ce8f 100644 --- a/examples/settings/setting_interface.py +++ b/examples/settings/setting_interface.py @@ -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( -- GitLab