QAccessibleWidget 類

The QAccessibleWidget class implements the QAccessibleInterface 為 QWidget。 更多...

頭: #include <QAccessibleWidget>
繼承: QAccessibleObject

公共函數

QAccessibleWidget (QWidget * w , Role role = Client, const QString & name = QString())

重實現公共函數

virtual QString actionText (int action , Text t , int child ) const
virtual int childAt (int x , int y ) const
virtual int childCount () const
virtual bool doAction (int action , int child , const QVariantList & params )
virtual int indexOfChild (const QAccessibleInterface * child ) const
virtual int navigate (RelationFlag relation , int entry , QAccessibleInterface ** target ) const
virtual QRect rect (int child ) const
virtual Relation relationTo (int child , const QAccessibleInterface * other , int otherChild ) const
virtual Role role (int child ) const
virtual State state (int child ) const
virtual QString text (Text t , int child ) const
virtual int userActionCount (int child ) const

保護函數

~QAccessibleWidget ()
void addControllingSignal (const QString & signal )
QObject * parentObject () const
void setAccelerator (const QString & accel )
void setDescription (const QString & desc )
void setHelp (const QString & help )
void setValue (const QString & value )
QWidget * widget () const

額外繼承成員

詳細描述

The QAccessibleWidget class implements the QAccessibleInterface 為 QWidget。

此類可方便用作提供 Widget 對象有關信息的 QAccessibleInterfaces 的自定義實現基類。

類提供函數以檢索 parentObject () (Widget 的父級小部件),和關聯 widget ()。控製信號的添加可以采用 addControllingSignal (), and setters are provided for various aspects of the interface implementation, for example setValue (), setDescription (), setAccelerator (),和 setHelp ().

另請參閱 QAccessible and QAccessibleObject .

成員函數文檔編製

QAccessibleWidget:: QAccessibleWidget ( QWidget * w , Role role = Client, const QString & name = QString())

創建 QAccessibleWidget object for widget w . role and name 是設置對象角色和名稱特性的可選參數。

[protected] QAccessibleWidget:: ~QAccessibleWidget ()

銷毀此對象。

[虛擬] QString QAccessibleWidget:: actionText ( int action , Text t , int child ) const

重實現自 QAccessibleInterface::actionText ().

[protected] void QAccessibleWidget:: addControllingSignal (const QString & signal )

注冊 signal 作為控製信號。

對象是連接到控製信號的任何其它對象的控製器。

[虛擬] int QAccessibleWidget:: childAt ( int x , int y ) const

重實現自 QAccessibleInterface::childAt ().

[虛擬] int QAccessibleWidget:: childCount () const

重實現自 QAccessibleInterface::childCount ().

[虛擬] bool QAccessibleWidget:: doAction ( int action , int child , const QVariantList & params )

重實現自 QAccessibleInterface::doAction ().

[虛擬] int QAccessibleWidget:: indexOfChild (const QAccessibleInterface * child ) const

重實現自 QAccessibleInterface::indexOfChild ().

重實現自 QAccessibleInterface::navigate ().

[protected] QObject * QAccessibleWidget:: parentObject () const

Returns the associated widget's parent object, which is either the parent widget, or qApp for top-level widgets.

[虛擬] QRect QAccessibleWidget:: rect ( int child ) const

重實現自 QAccessibleInterface::rect ().

[虛擬] Relation QAccessibleWidget:: relationTo ( int child , const QAccessibleInterface * other , int otherChild ) const

重實現自 QAccessibleInterface::relationTo ().

[虛擬] Role QAccessibleWidget:: role ( int child ) const

重實現自 QAccessibleInterface::role ().

[protected] void QAccessibleWidget:: setAccelerator (const QString & accel )

Sets the accelerator of this interface implementation to accel .

默認實現的 text () returns the set value for the Accelerator text.

Note that the object wrapped by this interface is not modified.

[protected] void QAccessibleWidget:: setDescription (const QString & desc )

Sets the description of this interface implementation to desc .

默認實現的 text () returns the set value for the Description text.

Note that the object wrapped by this interface is not modified.

[protected] void QAccessibleWidget:: setHelp (const QString & help )

Sets the help of this interface implementation to help .

默認實現的 text () returns the set value for the Help text.

Note that the object wrapped by this interface is not modified.

[protected] void QAccessibleWidget:: setValue (const QString & value )

Sets the value of this interface implementation to value .

默認實現的 text () returns the set value for the Value text.

Note that the object wrapped by this interface is not modified.

[虛擬] State QAccessibleWidget:: state ( int child ) const

重實現自 QAccessibleInterface::state ().

[虛擬] QString QAccessibleWidget:: text ( Text t , int child ) const

重實現自 QAccessibleInterface::text ().

[虛擬] int QAccessibleWidget:: userActionCount ( int child ) const

重實現自 QAccessibleInterface::userActionCount ().

[protected] QWidget * QAccessibleWidget:: widget () const

返迴關聯 Widget。