QAccessible(3qt)

πŸ“¦ version 3.3.8b, in fedora 43, fedora 44

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::SoundPlayed
  • QAccessible::Alert
  • QAccessible::ForegroundChanged
  • QAccessible::MenuStart
  • QAccessible::MenuEnd
  • QAccessible::PopupMenuStart
  • QAccessible::PopupMenuEnd
  • QAccessible::ContextHelpStart
  • QAccessible::ContextHelpEnd
  • QAccessible::DragDropStart
  • QAccessible::DragDropEnd
  • QAccessible::DialogStart
  • QAccessible::DialogEnd
  • QAccessible::ScrollingStart
  • QAccessible::ScrollingEnd
  • QAccessible::ObjectCreated
  • QAccessible::ObjectDestroyed
  • QAccessible::ObjectShow
  • QAccessible::ObjectHide
  • QAccessible::ObjectReorder
  • QAccessible::Focus
  • QAccessible::Selection
  • QAccessible::SelectionAdd
  • QAccessible::SelectionRemove
  • QAccessible::SelectionWithin
  • QAccessible::StateChanged
  • QAccessible::LocationChanged
  • QAccessible::NameChanged
  • QAccessible::DescriptionChanged
  • QAccessible::ValueChanged
  • QAccessible::ParentChanged
  • QAccessible::HelpChanged
  • QAccessible::DefaultActionChanged
  • QAccessible::AcceleratorChanged
  • QAccessible::MenuCommand

🧭 QAccessible::NavDirection 🧭

this enum is your lil GPS πŸ—ΊοΈ β€” it specifies which item to move to when navigating:

  • QAccessible::NavUp β€” the sibling above
  • QAccessible::NavDown β€” the sibling below
  • QAccessible::NavLeft β€” the left sibling
  • QAccessible::NavRight β€” the right sibling
  • QAccessible::NavNext β€” the next sibling
  • QAccessible::NavPrevious β€” the previous sibling
  • QAccessible::NavFirstChild β€” the first child
  • QAccessible::NavLastChild β€” the last child
  • QAccessible::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::NoRole
  • QAccessible::TitleBar
  • QAccessible::MenuBar
  • QAccessible::ScrollBar
  • QAccessible::Grip
  • QAccessible::Sound
  • QAccessible::Cursor
  • QAccessible::Caret
  • QAccessible::AlertMessage
  • QAccessible::Window
  • QAccessible::Client
  • QAccessible::PopupMenu
  • QAccessible::MenuItem
  • QAccessible::ToolTip
  • QAccessible::Application
  • QAccessible::Document
  • QAccessible::Pane
  • QAccessible::Chart
  • QAccessible::Dialog
  • QAccessible::Border
  • QAccessible::Grouping
  • QAccessible::Separator
  • QAccessible::ToolBar
  • QAccessible::StatusBar
  • QAccessible::Table
  • QAccessible::ColumnHeader
  • QAccessible::RowHeader
  • QAccessible::Column
  • QAccessible::Row
  • QAccessible::Cell
  • QAccessible::Link
  • QAccessible::HelpBalloon
  • QAccessible::Character
  • QAccessible::List
  • QAccessible::ListItem
  • QAccessible::Outline
  • QAccessible::OutlineItem
  • QAccessible::PageTab
  • QAccessible::PropertyPage
  • QAccessible::Indicator
  • QAccessible::Graphic
  • QAccessible::StaticText
  • QAccessible::EditableText
  • QAccessible::PushButton
  • QAccessible::CheckBox
  • QAccessible::RadioButton
  • QAccessible::ComboBox
  • QAccessible::DropLest
  • QAccessible::ProgressBar
  • QAccessible::Dial
  • QAccessible::HotkeyField
  • QAccessible::Slider
  • QAccessible::SpinBox
  • QAccessible::Diagram
  • QAccessible::Animation
  • QAccessible::Equation
  • QAccessible::ButtonDropDown
  • QAccessible::ButtonMenu
  • QAccessible::ButtonDropGrid
  • QAccessible::Whitespace
  • QAccessible::PageTabList
  • QAccessible::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::Normal
  • QAccessible::Unavailable
  • QAccessible::Selected
  • QAccessible::Focused
  • QAccessible::Pressed
  • QAccessible::Checked
  • QAccessible::Mixed
  • QAccessible::ReadOnly
  • QAccessible::HotTracked
  • QAccessible::Default
  • QAccessible::Expanded
  • QAccessible::Collapsed
  • QAccessible::Busy
  • QAccessible::Floating
  • QAccessible::Marqueed
  • QAccessible::Animated
  • QAccessible::Invisible
  • QAccessible::Offscreen
  • QAccessible::Sizeable
  • QAccessible::Moveable
  • QAccessible::SelfVoicing
  • QAccessible::Focusable
  • QAccessible::Selectable
  • QAccessible::Linked
  • QAccessible::Traversed
  • QAccessible::MultiSelectable
  • QAccessible::ExtSelectable
  • QAccessible::AlertLow
  • QAccessible::AlertMedium
  • QAccessible::AlertHigh
  • QAccessible::Protected
  • QAccessible::Valid

πŸ’¬ QAccessible::Text πŸ’¬

this enum specifies the string information that an accessible object returns:

  • QAccessible::Name β€” the name of the object
  • QAccessible::Description β€” a short text describing the object
  • QAccessible::Value β€” the value of the object
  • QAccessible::Help β€” a longer text giving info about how to use the object
  • QAccessible::DefaultAction β€” the default method to interact with the object
  • QAccessible::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 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