QAccessibleValueInterface 類

The 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

詳細描述

The 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 規範

成員函數文檔編製

[虛擬] 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 ().