Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2.4, 6.3.1, 6.3.2, 6.4.0 Beta4
-
None
-
Mac M1 mini, macOS Monterey 12.5.1
-
-
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.