1

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 ---|------
4

1 回答 1

1

QSlider 上可用的插槽和信号意味着无法自动将它们全部连接起来。为此,您需要创建一个自定义小部件或至少在一些附加逻辑中编写代码。

于 2013-10-14T00:41:38.080 回答