Qt 6.11 is out! See what's new in the release
blog
QSlider on macosx big sure 11.0.1 wont work
-
Hi Guys i try to run this code , simple window with 2 button and 1 slider, i tested on Windows 10 works perfect, on macosx the Slide wont appear.
Info: Screenshots are from the same Git repo.
Did you know where is the problem?
Thanks
def create_player(self):-
self.mediaPlayer = QMediaPlayer(None,QMediaPlayer.VideoSurface) -
videowidget = QVideoWidget() -
self.openBtn = QPushButton("Open Video") -
self.playBtn = QPushButton() -
self.playBtn.setEnabled(False) -
self.playBtn.setIcon(self.style().standardIcon(QStyle.SP_MediaPlay)) -
self.slider = QSlider() -
self.slider.setContentsMargins(1,1,1,1) -
hbox = QHBoxLayout() -
hbox.setContentsMargins(0,0,0,0) -
hbox.addWidget(self.openBtn) -
hbox.addWidget(self.playBtn) -
hbox.addWidget(self.slider) -
vbox = QVBoxLayout() -
vbox.addLayout(hbox) -
self.setLayout(vbox)
-
-
Hi and welcome to devnet,
Which version of PySide/PyQt are you using ?
What happens if you do not change the margins ? -
Hi SGaist
Which version of PySide/PyQt are you using ?
Version details:
"python_version": "3.9"
"pyqt5": {
"version": "==5.15.4"
"pyqt5-qt5"
"version": "==5.15.2"
"pyqt5-sip"
"markers": "python_version >= '3.5'",
"version": "==12.9.0"What happens if you do not change the margins ?
Nothing its the same behaviour, but btw now i restart my macbook and all works fine strange