- Qt 6.10
- Qt GUI
- C++ Classes
- QAccessibleAnnouncementEvent
- Qt 6.10.1 Reference Documentation

# QAccessibleAnnouncementEvent Class

The QAccessibleAnnouncementEvent is used to request the announcement of a given message by assistive technologies. More...

Header: | `#include <QAccessibleAnnouncementEvent>`
CMake: | `find_package(Qt6 REQUIRED COMPONENTS Gui)` `target_link_libraries(mytarget PRIVATE Qt6::Gui)`
qmake: | `QT += gui`
Since: | Qt 6.8
Inherits: | QAccessibleEvent

- List of all members, including inherited members
- QAccessibleAnnouncementEvent is part of Accessibility Classes.

## Public Functions

| QAccessibleAnnouncementEvent(QAccessibleInterface *iface, const QString &message)
| QAccessibleAnnouncementEvent(QObject *object, const QString &message)
QString | message() const
QAccessible::AnnouncementPoliteness | politeness() const
void | setPoliteness(QAccessible::AnnouncementPoliteness politeness)

## Detailed Description

This class is used with QAccessible::updateAccessibility().

## Member Function Documentation

### `[explicit]` QAccessibleAnnouncementEvent::QAccessibleAnnouncementEvent(QAccessibleInterface *iface, const QString &message)

Constructs a new QAccessibleAnnouncementEvent event for iface to request the announcement of message with politeness QAccessible::AnnouncementPoliteness::Polite.

QAccessibleAnnouncementEvent::setPoliteness can be used to adjust the politeness.

### `[explicit]` QAccessibleAnnouncementEvent::QAccessibleAnnouncementEvent(QObject *object, const QString &message)

Constructs a new QAccessibleAnnouncementEvent event for object to request the announcement of message with politeness QAccessible::AnnouncementPoliteness::Polite.

QAccessibleAnnouncementEvent::setPoliteness can be used to adjust the politeness.

### QString QAccessibleAnnouncementEvent::message() const

Returns the message.

### QAccessible::AnnouncementPoliteness QAccessibleAnnouncementEvent::politeness() const

Returns the politeness.

See also setPoliteness().

### void QAccessibleAnnouncementEvent::setPoliteness(QAccessible::AnnouncementPoliteness politeness)

Sets the politeness with which the announcement will be requested to politeness.

See also politeness().