diff --git a/src/pc/gui/main_window.py b/src/pc/gui/main_window.py index 949fa7d..13eba12 100644 --- a/src/pc/gui/main_window.py +++ b/src/pc/gui/main_window.py @@ -19,6 +19,7 @@ QMainWindow, QMessageBox, QPushButton, + QScrollArea, QSpinBox, QVBoxLayout, QWidget, @@ -108,9 +109,16 @@ ) root_layout.addWidget(self._video_label, stretch=3) - # 右側: コントロールパネル - control_layout = QVBoxLayout() - root_layout.addLayout(control_layout, stretch=1) + # 右側: スクロール可能なコントロールパネル + scroll = QScrollArea() + scroll.setWidgetResizable(True) + scroll.setHorizontalScrollBarPolicy( + Qt.ScrollBarPolicy.ScrollBarAlwaysOff, + ) + control_widget = QWidget() + control_layout = QVBoxLayout(control_widget) + scroll.setWidget(control_widget) + root_layout.addWidget(scroll, stretch=1) # 接続ボタン self._connect_btn = QPushButton("接続開始")