Center video widget in layout

This commit is contained in:
pax 2026-04-05 20:34:43 -05:00
parent 06ccdd475d
commit 0092007fc1

View File

@ -403,7 +403,7 @@ class VideoPlayer(QWidget):
# Video surface # Video surface
self._video_widget = QVideoWidget() self._video_widget = QVideoWidget()
self._video_widget.setAspectRatioMode(Qt.AspectRatioMode.KeepAspectRatio) self._video_widget.setAspectRatioMode(Qt.AspectRatioMode.KeepAspectRatio)
layout.addWidget(self._video_widget, stretch=1) layout.addWidget(self._video_widget, stretch=1, alignment=Qt.AlignmentFlag.AlignCenter)
# Player # Player
self._player = QMediaPlayer() self._player = QMediaPlayer()