What’s the result of the -1?
Ah, I see it. It’s not a bug (or something that will get fixed) - never query widgets for data - it’s unreliable. They have their own delegates, in case of the slider it spits out values during onValueChanged
, use that. As a bonus, it only runs when you slide it, rather than 120 times per second for the rest of the application life.
Also, to make it neater: