QAccessibleValueInterfaceclass implements support for objects that manipulate a value. 更多 …
此接口应该由表示值的可访问对象来实现。例如:自旋器、滑块、表盘及滚动条。
Instead of forcing the user to deal with the individual parts of the widgets, this interface gives an easier approach to the kind of widget it represents.
通常,是通过类实现此接口,该类还实现
QAccessibleInterface.IAccessible2 规范
QAccessibleValueInterface
¶
PySide2.QtGui.QAccessibleValueInterface.
currentValue
(
)
¶
object
返回 Widget 的当前值。这通常是 double 或 int。
另请参阅
PySide2.QtGui.QAccessibleValueInterface.
maximumValue
(
)
¶
object
返回此对象接受的最大值。
PySide2.QtGui.QAccessibleValueInterface.
minimumStepSize
(
)
¶
object
Returns the minimum step size for the accessible. This is the smalles increment that makes sense when changing the value. When programatically changing the value it should always be a multiple of the minimum step size.
Some tools use this value even when the
setCurrentValue
does not perform any action. Progress bars for example are read-only but should return their range divided by 100.
PySide2.QtGui.QAccessibleValueInterface.
minimumValue
(
)
¶
object
返回此对象接受的最小值。
PySide2.QtGui.QAccessibleValueInterface.
setCurrentValue
(
value
)
¶
value – object
设置
value
。若期望
value
超出允许值范围,此调用会被忽略。