pyapp-kit / superqt

Missing widgets and components for Qt-python
https://pyapp-kit.github.io/superqt/
BSD 3-Clause "New" or "Revised" License
210 stars 38 forks source link

Cannot update setValue on QLabeledRangeSlider after creation #227

Closed lazyarse closed 11 months ago

lazyarse commented 11 months ago

Describe the bug After creating a QLabeledRangeSlider, I want to dynamically update the max value depending on certain conditions. So, I find the child (which works) and then call setValue on it, but it doesn't update the max value. It's as if the call never happened. I can 'hide' the slider so some methods can be successfully called.

To Reproduce Steps to reproduce the behavior:

  1. Create a QLabeledRangeSlider and add to layout
  2. After this, call setValue on it at some stage and see that max value doesn't change

Expected behavior The slider should be able to have min/max values changed once created

Desktop (please complete the following information):

lazyarse commented 11 months ago

It's setRange I want, not setValue!