PySide/PyQt, is is possible to make sliders dependent i.e. give them a combined maximum

StackOverflow https://stackoverflow.com/questions/19349069

  •  30-06-2022
  •  | 
  •  

문제

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 ---|------
도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top