QT QSlider 属性 singleStep 与 pageStep 的区别

当焦点在slider 上时,通过pageup, pagedown 按钮或者点击到滚动栏上移动的数值为pageStep;通过左右方向键按钮移动的数值为singleStep.
注意:在windows 系统中,鼠标移动到slider 上使用滚轮操作时的默认步长是 min(3*singleStep, pageStep), 但Mac 系统下貌似只是 3*singleStep,qt 源码中通过宏 Q_WS_MAC 来区分两段代码。 

附原文:
When the user clicks on either side of the slider position indicator, a page step is made. To take a single step, the user must click the slider to give it focus and then use the arrow keys of the keyboard.

你可能感兴趣的:(QT QSlider 属性 singleStep 与 pageStep 的区别)