内容表

上一话题

QAccessibleValueChangeEvent

下一话题

QActionEvent

QAccessibleValueInterface

QAccessibleValueInterface class implements support for objects that manipulate a value. 更多

Inheritance diagram of PySide2.QtGui.QAccessibleValueInterface

详细描述

此接口应该由表示值的可访问对象来实现。例如:自旋器、滑块、表盘及滚动条。

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 规范

class QAccessibleValueInterface
PySide2.QtGui.QAccessibleValueInterface. currentValue ( )
返回类型

object

返回 Widget 的当前值。这通常是 double 或 int。

另请参阅

setCurrentValue()

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 超出允许值范围,此调用会被忽略。