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。