From 6783f92970553d344769f2f7a633b3e4b1e21b71 Mon Sep 17 00:00:00 2001 From: Hector <2055590199@qq.com> Date: Mon, 20 Oct 2025 11:58:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E6=96=B0=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/property_panel.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/property_panel.py b/ui/property_panel.py index 07bb353c..46204ee9 100644 --- a/ui/property_panel.py +++ b/ui/property_panel.py @@ -8847,6 +8847,7 @@ class PropertyPanelManager: # 动画控制组 animation_group = QGroupBox("动画控制") animation_layout = QGridLayout() + animation_layout.setColumnMinimumWidth(0, 115) # 首先检测骨骼动画 has_skeletal_anim = False @@ -8917,8 +8918,8 @@ class PropertyPanelManager: layout.addWidget(self.animation_combo, current_row, 1, 1, 3) current_row += 1 - btn_box = QWidget() - btn_lay = QHBoxLayout(btn_box) + # btn_box = QWidget() + btn_lay = QHBoxLayout() for txt, slot in (("播放", self._playAnimation), ("暂停", self._pauseAnimation), ("停止", self._stopAnimation), @@ -8927,7 +8928,7 @@ class PropertyPanelManager: btn.clicked.connect(lambda _, f=slot: f(origin_model)) btn_lay.addWidget(btn) layout.addWidget(QLabel("控制:"), current_row, 0) - layout.addWidget(btn_box, current_row, 1, 1, 3) + layout.addLayout(btn_lay, current_row, 1, 1, 3) current_row += 1 self.speed_spinbox = QDoubleSpinBox()