QAccessibleValueInterface 类

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

头: #include <QAccessibleValueInterface>
qmake: QT += gui

公共函数

virtual ~QAccessibleValueInterface ()
virtual QVariant currentValue () const = 0
virtual QVariant maximumValue () const = 0
virtual QVariant minimumStepSize () const = 0
virtual QVariant minimumValue () const = 0
virtual void setCurrentValue (const QVariant & value ) = 0

详细描述

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

成员函数文档编制

[virtual] QAccessibleValueInterface:: ~QAccessibleValueInterface ()

销毁 QAccessibleValueInterface .

[pure virtual] QVariant QAccessibleValueInterface:: currentValue () const

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

另请参阅 setCurrentValue ().

[pure virtual] QVariant QAccessibleValueInterface:: maximumValue () const

返回此对象接受的最大值。

另请参阅 minimumValue () 和 currentValue ().

[pure virtual] QVariant QAccessibleValueInterface:: minimumStepSize () const

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.

[pure virtual] QVariant QAccessibleValueInterface:: minimumValue () const

返回此对象接受的最小值。

另请参阅 maximumValue () 和 currentValue ().

[pure virtual] void QAccessibleValueInterface:: setCurrentValue (const QVariant & value )

设置 value 。若期望 value 超出允许值范围,此调用会被忽略。

另请参阅 currentValue (), minimumValue (),和 maximumValue ().