QAccessible(3qt)
okay bestie, gather round π«Ά this is the manual page for QAccessible(3qt), and honestly? it's giving accessibility-royalty, no cap. it's long so we're doing this in two parts β this is part one, so don't go anywhere π
πΈ NAME πΈ
QAccessible β enums and static functions relating to accessibility β¨
π SYNOPSIS π
#include <qaccessible.h>
Inherited by QAccessibleInterface.
π« Public Members π«
enum Event { SoundPlayed = 0x0001, Alert = 0x0002, ForegroundChanged =
0x0003, MenuStart = 0x0004, MenuEnd = 0x0005, PopupMenuStart =
0x0006, PopupMenuEnd = 0x0007, ContextHelpStart = 0x000C,
ContextHelpEnd = 0x000D, DragDropStart = 0x000E, DragDropEnd =
0x000F, DialogStart = 0x0010, DialogEnd = 0x0011, ScrollingStart =
0x0012, ScrollingEnd = 0x0013, MenuCommand = 0x0018, ObjectCreated =
0x8000, ObjectDestroyed = 0x8001, ObjectShow = 0x8002, ObjectHide =
0x8003, ObjectReorder = 0x8004, Focus = 0x8005, Selection = 0x8006,
SelectionAdd = 0x8007, SelectionRemove = 0x8008, SelectionWithin =
0x0009, StateChanged = 0x800A, LocationChanged = 0x800B, NameChanged
= 0x800C, DescriptionChanged = 0x800D, ValueChanged = 0x800E,
ParentChanged = 0x800F, HelpChanged = 0x80A0, DefaultActionChanged =
0x80B0, AcceleratorChanged = 0x80C0 }
wait, hold on, bestie π i typo'd that one β let me run it back, the SelectionWithin value is 0x8009, not 0x0009. here it is, for real this time:
enum Event { SoundPlayed = 0x0001, Alert = 0x0002, ForegroundChanged =
0x0003, MenuStart = 0x0004, MenuEnd = 0x0005, PopupMenuStart =
0x0006, PopupMenuEnd = 0x0007, ContextHelpStart = 0x000C,
ContextHelpEnd = 0x000D, DragDropStart = 0x000E, DragDropEnd =
0x000F, DialogStart = 0x0010, DialogEnd = 0x0011, ScrollingStart =
0x0012, ScrollingEnd = 0x0013, MenuCommand = 0x0018, ObjectCreated =
0x8000, ObjectDestroyed = 0x8001, ObjectShow = 0x8002, ObjectHide =
0x8003, ObjectReorder = 0x8004, Focus = 0x8005, Selection = 0x8006,
SelectionAdd = 0x8007, SelectionRemove = 0x8008, SelectionWithin =
0x8009, StateChanged = 0x800A, LocationChanged = 0x800B, NameChanged
= 0x800C, DescriptionChanged = 0x800D, ValueChanged = 0x800E,
ParentChanged = 0x800F, HelpChanged = 0x80A0, DefaultActionChanged =
0x80B0, AcceleratorChanged = 0x80C0 }
enum State { Normal = 0x00000000, Unavailable = 0x00000001, Selected =
0x00000002, Focused = 0x00000004, Pressed = 0x00000008, Checked =
0x00000010, Mixed = 0x00000020, ReadOnly = 0x00000040, HotTracked =
0x00000080, Default = 0x00000100, Expanded = 0x00000200, Collapsed =
0x00000400, Busy = 0x00000800, Floating = 0x00001000, Marqueed =
0x00002000, Animated = 0x00004000, Invisible = 0x00008000, Offscreen
= 0x00010000, Sizeable = 0x00020000, Moveable = 0x00040000,
SelfVoicing = 0x00080000, Focusable = 0x00100000, Selectable =
0x00200000, Linked = 0x00400000, Traversed = 0x00800000,
MultiSelectable = 0x01000000, ExtSelectable = 0x02000000, AlertLow =
0x04000000, AlertMedium = 0x08000000, AlertHigh = 0x10000000,
Protected = 0x20000000, Valid = 0x3fffffff }
enum Role { NoRole = 0x00000000, TitleBar = 0x00000001, MenuBar =
0x00000002, ScrollBar = 0x00000003, Grip = 0x00000004, Sound =
0x00000005, Cursor = 0x00000006, Caret = 0x00000007, AlertMessage =
0x00000008, Window = 0x00000009, Client = 0x0000000A, PopupMenu =
0x0000000B, MenuItem = 0x0000000C, ToolTip = 0x0000000D, Application
= 0x0000000E, Document = 0x0000000F, Pane = 0x00000010, Chart =
0x00000011, Dialog = 0x00000012, Border = 0x00000013, Grouping =
0x00000014, Separator = 0x00000015, ToolBar = 0x00000016, StatusBar
= 0x00000017, Table = 0x00000018, ColumnHeader = 0x00000019,
RowHeader = 0x0000001A, Column = 0x0000001B, Row = 0x0000001C, Cell
= 0x0000001D, Link = 0x0000001E, HelpBalloon = 0x0000001F, Character
= 0x00000020, List = 0x00000021, ListItem = 0x00000022, Outline =
0x00000023, OutlineItem = 0x00000024, PageTab = 0x00000025,
PropertyPage = 0x00000026, Indicator = 0x00000027, Graphic =
0x00000028, StaticText = 0x00000029, EditableText = 0x0000002A,
PushButton = 0x0000002B, CheckBox = 0x0000002C, RadioButton =
0x0000002D, ComboBox = 0x0000002E, DropLest = 0x0000002F,
ProgressBar = 0x00000030, Dial = 0x00000031, HotkeyField =
0x00000032, Slider = 0x00000033, SpinBox = 0x00000034, Diagram =
0x00000035, Animation = 0x00000036, Equation = 0x00000037,
ButtonDropDown = 0x00000038, ButtonMenu = 0x00000039, ButtonDropGrid
= 0x0000003A, Whitespace = 0x0000003B, PageTabList = 0x0000003C,
Clock = 0x0000003D }
enum NavDirection { NavUp = 0x00000001, NavDown = 0x00000002, NavLeft =
0x00000003, NavRight = 0x00000004, NavNext = 0x00000005, NavPrevious
= 0x00000006, NavFirstChild = 0x00000007, NavLastChild = 0x00000008,
NavFocusChild = 0x00000009 }
enum Text { Name = 0, Description, Value, Help, Accelerator,
DefaultAction }
π Static Public Members π
QRESULT queryAccessibleInterface ( QObject * object,
QAccessibleInterface ** iface )
void updateAccessibility ( QObject * object, int control, Event reason )
bool isActive ()
π DESCRIPTION π
so the tea is: QAccessible is the class that hands you all the enums and static functions that relate to accessibility π
Accessibility clients do their thing by using implementations of the QAccessibleInterface β that's how they read the info an accessible object exposes, or call functions to manipulate that accessible object π¦
if you wanna know more about how to redistribute Qt plugins, go check the plugin documentation, bestie, it's all there.
See also Miscellaneous Classes.
π Member Type Documentation π
π QAccessible::Event π
this enum type is the whole mood board of event types β it fires when the state of the accessible object has changed. the event types are, in order:
QAccessible::SoundPlayedQAccessible::AlertQAccessible::ForegroundChangedQAccessible::MenuStartQAccessible::MenuEndQAccessible::PopupMenuStartQAccessible::PopupMenuEndQAccessible::ContextHelpStartQAccessible::ContextHelpEndQAccessible::DragDropStartQAccessible::DragDropEndQAccessible::DialogStartQAccessible::DialogEndQAccessible::ScrollingStartQAccessible::ScrollingEndQAccessible::ObjectCreatedQAccessible::ObjectDestroyedQAccessible::ObjectShowQAccessible::ObjectHideQAccessible::ObjectReorderQAccessible::FocusQAccessible::SelectionQAccessible::SelectionAddQAccessible::SelectionRemoveQAccessible::SelectionWithinQAccessible::StateChangedQAccessible::LocationChangedQAccessible::NameChangedQAccessible::DescriptionChangedQAccessible::ValueChangedQAccessible::ParentChangedQAccessible::HelpChangedQAccessible::DefaultActionChangedQAccessible::AcceleratorChangedQAccessible::MenuCommand
π§ QAccessible::NavDirection π§
this enum is your lil GPS πΊοΈ β it specifies which item to move to when navigating:
QAccessible::NavUpβ the sibling aboveQAccessible::NavDownβ the sibling belowQAccessible::NavLeftβ the left siblingQAccessible::NavRightβ the right siblingQAccessible::NavNextβ the next siblingQAccessible::NavPreviousβ the previous siblingQAccessible::NavFirstChildβ the first childQAccessible::NavLastChildβ the last childQAccessible::NavFocusChildβ the child with focus
π QAccessible::Role π
this enum defines a whole bunch of roles an accessible object can have β everyone's got a role, and these are them:
QAccessible::NoRoleQAccessible::TitleBarQAccessible::MenuBarQAccessible::ScrollBarQAccessible::GripQAccessible::SoundQAccessible::CursorQAccessible::CaretQAccessible::AlertMessageQAccessible::WindowQAccessible::ClientQAccessible::PopupMenuQAccessible::MenuItemQAccessible::ToolTipQAccessible::ApplicationQAccessible::DocumentQAccessible::PaneQAccessible::ChartQAccessible::DialogQAccessible::BorderQAccessible::GroupingQAccessible::SeparatorQAccessible::ToolBarQAccessible::StatusBarQAccessible::TableQAccessible::ColumnHeaderQAccessible::RowHeaderQAccessible::ColumnQAccessible::RowQAccessible::CellQAccessible::LinkQAccessible::HelpBalloonQAccessible::CharacterQAccessible::ListQAccessible::ListItemQAccessible::OutlineQAccessible::OutlineItemQAccessible::PageTabQAccessible::PropertyPageQAccessible::IndicatorQAccessible::GraphicQAccessible::StaticTextQAccessible::EditableTextQAccessible::PushButtonQAccessible::CheckBoxQAccessible::RadioButtonQAccessible::ComboBoxQAccessible::DropLestQAccessible::ProgressBarQAccessible::DialQAccessible::HotkeyFieldQAccessible::SliderQAccessible::SpinBoxQAccessible::DiagramQAccessible::AnimationQAccessible::EquationQAccessible::ButtonDropDownQAccessible::ButtonMenuQAccessible::ButtonDropGridQAccessible::WhitespaceQAccessible::PageTabListQAccessible::Clock
β¨ QAccessible::State β¨
this enum type defines bitflags β and bestie, you combine them π«Ά β to indicate the state of the accessible object. the values are:
QAccessible::NormalQAccessible::UnavailableQAccessible::SelectedQAccessible::FocusedQAccessible::PressedQAccessible::CheckedQAccessible::MixedQAccessible::ReadOnlyQAccessible::HotTrackedQAccessible::DefaultQAccessible::ExpandedQAccessible::CollapsedQAccessible::BusyQAccessible::FloatingQAccessible::MarqueedQAccessible::AnimatedQAccessible::InvisibleQAccessible::OffscreenQAccessible::SizeableQAccessible::MoveableQAccessible::SelfVoicingQAccessible::FocusableQAccessible::SelectableQAccessible::LinkedQAccessible::TraversedQAccessible::MultiSelectableQAccessible::ExtSelectableQAccessible::AlertLowQAccessible::AlertMediumQAccessible::AlertHighQAccessible::ProtectedQAccessible::Valid
π¬ QAccessible::Text π¬
this enum specifies the string information that an accessible object returns:
QAccessible::Nameβ the name of the objectQAccessible::Descriptionβ a short text describing the objectQAccessible::Valueβ the value of the objectQAccessible::Helpβ a longer text giving info about how to use the objectQAccessible::DefaultActionβ the default method to interact with the objectQAccessible::Acceleratorβ the keyboard shortcut that executes the default action
π MEMBER FUNCTION DOCUMENTATION π
π bool QAccessible::isActive () [static] π
Returns TRUE if an accessibility implementation has been requested during the runtime of the application, otherwise returns FALSE.
use this function to prevent potentially expensive notifications via updateAccessibility(), bestie β your CPU will thank you π
π QRESULT QAccessible::queryAccessibleInterface ( QObject * object, QAccessibleInterface ** iface ) [static] π
Sets iface to point to the implementation of the QAccessibleInterface for object, and returns QS_OK if successfull β or sets iface to 0 and returns QE_NOCOMPONENT if no accessibility implementation for object exists. (yes it's spelled "successfull" in here, we don't make the rules π« )
the function uses the classname of object to find a suitable implementation. and if no implementation for the object's class is available? it goes hunting for an implementation for the object's parent class instead π
this function is called to answer an accessibility client's request for object information.
You should never need to call this function yourself. like, ever. hands off, bestie π
okay part one is a wrap but we're NOT done β more of this page is coming, so stay tuned π β¨
void QAccessible::updateAccessibility ( QObject * object, int control, Event reason ) [static]
okay bestie, this one is the βhey accessibility clients, something changedβ button π It notifies accessibility clients about a change in object's accessibility information. fr fr.
reason is the cause of the change β like, for example, ValueChange when the position of a slider has been changed. control is the ID of the child element that has changed. When control is 0, the object itself has changed. Not the child, the whole vibe. π
Call this function whenever the state of your accessible object or one of it's sub-elements has been changed either programmatically (e.g. by calling QLabel::setText()) or by user interaction. So basically every time the UI does something that matters, you're supposed to yell it into the accessibility void. π£οΈ
If there are no accessibility tools listening to this event, the performance penalty for calling this function is minor, but if determining the parameters of the call is expensive you can use isActive() to avoid unnecessary performance penalties if no client is listening. That's the βcheck if anyone's home before you do the expensive thingβ move. π
SEE ALSO
COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.
AUTHOR
Generated automatically from the source code. π€ No human author to credit, the machine did it.
BUGS
Found a bug in Qt? Don't just scream into the void β report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. π«Ά
The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech.
If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qaccessible.3qt) and the Qt version (3.3.8). That way they can find it fast, no scavenger hunt. π΅οΈββοΈ
source: <b>Trolltech AS</b> Β· date: <b>2 February 2007</b> Β· Qt version: <b>3.3.8</b> Β· page: <b>QAccessible(3qt)</b> β that's the whole thing, bestie. go forth and make your app accessible π β¨
π¦ where this page comes from
- fedora 43: qt3-devel-docs 3.3.8b-102.fc43 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- fedora 44: qt3-devel-docs 3.3.8b-103.fc44 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms