Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-85663

Very poor performance drawing QSlider ticks on MacOS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 5.15.0
    • None
    • macOS

      On Mac Os, when using a QSlider with tick marks enabled, the performance drops significantly. I attached a sample program to verify this. It has a slider and using a timer tries to move the slider 100 times per second. On Windows and Ubuntu this easily works with up tp 10000 tick marks. On MacOS the update rate drops to 60 fps for 100 ticks and to 3 fps for 1000 ticks.

       

      Possibly related but not identical Issues:

      https://bugreports.qt.io/browse/QTBUG-48084?jql=text%20~%20%22qslider%22
      https://bugreports.qt.io/browse/QTBUG-682?jql=text%20~%20%22qslider%22
      https://bugreports.qt.io/browse/QTBUG-49385?jql=text%20~%20%22qslider%22

        1. main.cpp
          0.2 kB
          Christian Feldmann
        2. SliderTest.pro
          0.2 kB
          Christian Feldmann
        3. SliderWidget.cpp
          1.0 kB
          Christian Feldmann
        4. SliderWidget.h
          0.5 kB
          Christian Feldmann
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            ChristianFeldmann Christian Feldmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes