Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

QAccessibleWidget Class

TheQAccessibleWidget class implements theQAccessibleInterface for QWidgets.More...

Header:#include <QAccessibleWidget>
Inherits:QAccessibleObject

Public Functions

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

Reimplemented Public Functions

virtual QStringactionText(int action, Text t, int child) const
virtual intchildAt(int x, int y) const
virtual intchildCount() const
virtual booldoAction(int action, int child, const QVariantList & params)
virtual intindexOfChild(const QAccessibleInterface * child) const
virtual intnavigate(RelationFlag relation, int entry, QAccessibleInterface ** target) const
virtual QRectrect(int child) const
virtual RelationrelationTo(int child, const QAccessibleInterface * other, int otherChild) const
virtual Rolerole(int child) const
virtual Statestate(int child) const
virtual QStringtext(Text t, int child) const
virtual intuserActionCount(int child) const

Protected Functions

~QAccessibleWidget()
voidaddControllingSignal(const QString & signal)
QObject *parentObject() const
voidsetAccelerator(const QString & accel)
voidsetDescription(const QString & desc)
voidsetHelp(const QString & help)
voidsetValue(const QString & value)
QWidget *widget() const

Additional Inherited Members

Detailed Description

TheQAccessibleWidget class implements theQAccessibleInterface for QWidgets.

This class is convenient to use as a base class for custom implementations of QAccessibleInterfaces that provide information about widget objects.

The class provides functions to retrieve theparentObject() (the widget's parent widget), and the associatedwidget(). Controlling signals can be added withaddControllingSignal(), and setters are provided for various aspects of the interface implementation, for examplesetValue(),setDescription(),setAccelerator(), andsetHelp().

See alsoQAccessible andQAccessibleObject.

Member Function Documentation

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

Creates aQAccessibleWidget object for widgetw.role andname are optional parameters that set the object's role and name properties.

[protected]QAccessibleWidget::~QAccessibleWidget()

Destroys this object.

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

Reimplemented fromQAccessibleInterface::actionText().

[protected]void QAccessibleWidget::addControllingSignal(constQString & signal)

Registerssignal as a controlling signal.

An object is a Controller to any other object connected to a controlling signal.

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

Reimplemented fromQAccessibleInterface::childAt().

[virtual]int QAccessibleWidget::childCount() const

Reimplemented fromQAccessibleInterface::childCount().

[virtual]bool QAccessibleWidget::doAction(int action,int child, constQVariantList & params)

Reimplemented fromQAccessibleInterface::doAction().

[virtual]int QAccessibleWidget::indexOfChild(constQAccessibleInterface * child) const

Reimplemented fromQAccessibleInterface::indexOfChild().

[virtual]int QAccessibleWidget::navigate(RelationFlag relation,int entry,QAccessibleInterface ** target) const

Reimplemented fromQAccessibleInterface::navigate().

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

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

[virtual]QRect QAccessibleWidget::rect(int child) const

Reimplemented fromQAccessibleInterface::rect().

[virtual]Relation QAccessibleWidget::relationTo(int child, constQAccessibleInterface * other,int otherChild) const

Reimplemented fromQAccessibleInterface::relationTo().

[virtual]Role QAccessibleWidget::role(int child) const

Reimplemented fromQAccessibleInterface::role().

[protected]void QAccessibleWidget::setAccelerator(constQString & accel)

Sets the accelerator of this interface implementation toaccel.

The default implementation oftext() returns the set value for the Accelerator text.

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

[protected]void QAccessibleWidget::setDescription(constQString & desc)

Sets the description of this interface implementation todesc.

The default implementation oftext() returns the set value for the Description text.

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

[protected]void QAccessibleWidget::setHelp(constQString & help)

Sets the help of this interface implementation tohelp.

The default implementation oftext() returns the set value for the Help text.

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

[protected]void QAccessibleWidget::setValue(constQString & value)

Sets the value of this interface implementation tovalue.

The default implementation oftext() returns the set value for the Value text.

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

[virtual]State QAccessibleWidget::state(int child) const

Reimplemented fromQAccessibleInterface::state().

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

Reimplemented fromQAccessibleInterface::text().

[virtual]int QAccessibleWidget::userActionCount(int child) const

Reimplemented fromQAccessibleInterface::userActionCount().

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

Returns the associated widget.

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.


[8]ページ先頭

©2009-2025 Movatter.jp