Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. QSlider on macosx big sure 11.0.1 wont work
Qt 6.11 is out! See what's new in the release blog

QSlider on macosx big sure 11.0.1 wont work

Scheduled Pinned Locked Moved Solved Qt for Python
3 Posts 2 Posters 814 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gdilisa
    wrote on last edited by
    #1

    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.

    alt text
    alt text

    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)
      
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Which version of PySide/PyQt are you using ?
      What happens if you do not change the margins ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gdilisa
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved