PythonQt.QtGui.QAccessibleEvent
QAccessibleEvent
PythonQtInstanceWrapper object
Native bases: PythonQtInstanceWrapper
Supplemental documentation: Qt 5 reference:
Detailed Description
This class is used with QAccessible::updateAccessibility().
The event type is one of the values of QAccessible::Event. There are a number of subclasses that should be used to provide more details about the event.
For example to notify about a focus change when re-implementing QWidget::setFocus, the event could be used as follows:
void MyWidget::setFocus(Qt::FocusReason reason)
{
// handle custom focus setting...
QAccessibleEvent event(f, QAccessible::Focus);
QAccessible::updateAccessibility(&event);
}
To enable in process screen readers, all events must be sent after the change has happened.
Source: https://doc.qt.io/archives/qt-5.15/qaccessibleevent.html
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
__init__ |
function | (self, *args: Any, **kwargs: Any) -> None |
Native constructor; consult class documentation for supported overloads. (shared captured text) |
child |
function | (self) -> int |
X.child() -> int |
className |
function | (self, *args: Any, **kwargs: Any) -> Any |
Return the classname of the object (shared captured text) |
delete |
function | (self, *args: Any, **kwargs: Any) -> Any |
Deletes the C++ object (at your own risk, my friend!) (shared captured text) |
help |
function | (self, *args: Any, **kwargs: Any) -> Any |
Shows the help of available methods for this class (shared captured text) |
inherits |
function | (self, *args: Any, **kwargs: Any) -> Any |
Returns if the class inherits or is of given type name (shared captured text) |
object |
function | (self) -> Any |
X.object() -> PythonQt.private.QObject |
setChild |
function | (self, chld: int) -> None |
Sets the child index to child. |
type |
function | (self) -> Any |
Returns the event type. |