How to connect a QSlider to QDoubleSpinBox

后端 未结 5 1234
被撕碎了的回忆
被撕碎了的回忆 2021-01-13 06:29

I want to connect a QSlider to a QDoubleSpinBox but while the code compiles fine and runs for simple QSpinBox, it doesn\'t work for QDoubleSpinBox

QSlider *h         


        
5条回答
  •  温柔的废话
    2021-01-13 07:10

    You'll have to add your own slot which converts the argument type and emits a signal or updates the slider directly.

提交回复
热议问题