PySide6.QtWidgets.QAccessibleWidget¶
- class QAccessibleWidget¶
The
QAccessibleWidgetclass implements the QAccessibleInterface for QWidgets.Details
This class is part of Accessibility for QWidget Applications.
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 the
parentObject()(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 example setValue(), setDescription(), setAccelerator(), and setHelp().See also
QAccessibleQAccessibleObjectSynopsis¶
Methods¶
def
__init__()def
parentObject()def
widget()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Creates a
QAccessibleWidgetobject for widgetw.roleis an optional parameter that sets the object’s role property.Creates a
QAccessibleWidgetobject for widgetw.roleandnameare optional parameters that set the object’s role and name properties.- addControllingSignal(signal)¶
- Parameters:
signal – str
Registers
signalas a controlling signal.An object is a Controller to any other object connected to a controlling signal.
Returns the associated widget’s parent object, which is either the parent widget, or
qAppfor top-level widgets.Returns the associated widget.