QAccessibleWidget露

The QAccessibleWidget class implements the QAccessibleInterface for QWidgets. More鈥�

Inheritance diagram of PySide2.QtWidgets.QAccessibleWidget

Synopsis露

Functions露

Virtual functions露

Detailed Description露

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鈥檚 parent widget), and the associated widget() . Controlling signals can be added with addControllingSignal() , and setters are provided for various aspects of the interface implementation, for example , setDescription(), setAccelerator(), and setHelp().

See also

QAccessible QAccessibleObject

class PySide2.QtWidgets.QAccessibleWidget(o[, r=QAccessible.Client[, name=""]])露
param name:

str

param o:

PySide2.QtWidgets.QWidget

param r:

Role

Creates a QAccessibleWidget object for widget w . role and name are optional parameters that set the object鈥檚 role and name properties.

PySide2.QtWidgets.QAccessibleWidget.actionNames()露
Return type:

list of strings

PySide2.QtWidgets.QAccessibleWidget.addControllingSignal(signal)露
Parameters:

signal 鈥� str

Registers signal as a controlling signal.

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

PySide2.QtWidgets.QAccessibleWidget.doAction(actionName)露
Parameters:

actionName 鈥� str

PySide2.QtWidgets.QAccessibleWidget.keyBindingsForAction(actionName)露
Parameters:

actionName 鈥� str

Return type:

list of strings

PySide2.QtWidgets.QAccessibleWidget.parentObject()露
Return type:

PySide2.QtCore.QObject

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

PySide2.QtWidgets.QAccessibleWidget.widget()露
Return type:

PySide2.QtWidgets.QWidget

Returns the associated widget.