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

Multiple Qt Quick Sliders repaint incorrectly in macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.2.7, 6.5.0 Beta1
    • 6.2.4, 6.3.1, 6.3.2, 6.4.0 Beta4
    • Quick: Controls 2
    • None
    • Mac M1 mini, macOS Monterey 12.5.1
    • macOS
    • 34a42dad18 (qt/qtdeclarative/dev) 34a42dad18 (qt/tqtc-qtdeclarative/dev) 7f34bac918 (qt/qtdeclarative/6.4) 7f34bac918 (qt/tqtc-qtdeclarative/6.4) 6f1b5d2f09 (qt/tqtc-qtdeclarative/6.2) 3ec62d9949 (qt/qtdeclarative/6.3)

    Description

      On macOS, with the default QQuickStyle or with QQuickStyle::setStyle("macOS"), Sliders repaint incorrectly when the window they're in becomes the topmost window, or loses topmost status. When the window loses topmost status and the sliders repaint, going to inactive appearance, all jump to the position of the last-moved slider, though no actual value change occurs. If a window is made frontmost by clicking on a slider track, all sliders jump to that same position, though no actual value change occurs for all but the clicked-on slider.

      Horizontal and vertical sliders are affected separately: if only a horizontal slider has been dragged, only the other horizontal sliders jump to its position. Same is true for vertical sliders.

      Changing to any other control style (e.g., Basic, Fusion, Imagine, etc.) fixes the problem. The problem does not occur on Windows.

      This is 95% repeatable — once in a while it does not happen, but most of the time it does, at least on macOS Monterey 12.5.1 on an M1 mini (Apple Silicon).

      See also bug #2 at QTBUG-98093, in which all sliders in macOS moved when one was dragged.

      Minimal demo project attached.

       

      Attachments

        1. main.cpp
          0.5 kB
        2. main.qml
          0.2 kB
        3. QtSliderTest.pro
          0.5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tpochep Timur Pocheptsov
            adam_wilt Adam Wilt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes