Question

In pyside or pyqt:

Say that I have 3 sliders whose combined value mustn't exceed 9 or/and that it would always have to be 9. Is there an inbuilt way to make them depended in such a way, or do I have to program them.

Illustration:
  0123456789
1 ---------|
2 |---------
3 |---------

  0123456789
1 ---|------
2 ---|------
3 ---|------
Was it helpful?

Solution

The available slots and singals on a QSlider mean that there would be no way to automatically have them all connect. To do this you would need to create a custom widget or at the least code in some additional logic.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top