State Class

(QAccessible::State)
Header: #include <QAccessible>
qmake: QT += gui

Public Functions

State()

Detailed Description

This structure defines bit flags that indicate the state of an accessible object. The values are:

ConstantValueDescription
QAccessible::active?The object is the active window or the active sub-element in a container (that would get focus when focusing the container).
QAccessible::adjustable?The object represents an adjustable value, e.g. sliders.
QAccessible::animated?The object's appearance changes frequently.
QAccessible::busy?The object cannot accept input at the moment.
QAccessible::checkable?The object is checkable.
QAccessible::checked?The object's check box is checked.
QAccessible::checkStateMixed?The third state of checkboxes (half checked in tri-state check boxes).
QAccessible::collapsed?The object is collapsed, e.g. a closed listview item, or an iconified window.
QAccessible::defaultButton?The object represents the default button in a dialog.
QAccessible::defunct?The object no longer exists.
QAccessible::editable?The object has a text carret (and often implements the text interface).
QAccessible::expandable?The object is expandable, mostly used for cells in a tree view.
QAccessible::expanded?The object is expanded, currently its children are visible.
QAccessible::extSelectable?The object supports extended selection.
QAccessible::focusable?The object can receive focus. Only objects in the active window can receive focus.
QAccessible::focused?The object has keyboard focus.
QAccessible::hasPopup?The object opens a popup.
QAccessible::hotTracked?The object's appearance is sensitive to the mouse cursor position.
QAccessible::invalid?The object is no longer valid (because it has been deleted).
QAccessible::invalidEntry?Input validation current input invalid.
QAccessible::invisible?The object is not visible to the user.
QAccessible::linked?The object is linked to another object, e.g. a hyperlink.
QAccessible::marqueed?The object displays scrolling contents, e.g. a log view.
QAccessible::modal?The object blocks input from other objects.
QAccessible::movable?The object can be moved.
QAccessible::multiLine?The object has multiple lines of text (word wrap), as opposed to a single line.
QAccessible::multiSelectable?The object supports multiple selected items.
QAccessible::offscreen?The object is clipped by the visible area. Objects that are off screen are also invisible.
QAccessible::passwordEdit?The object is a password field, e.g. a line edit for entering a Password.
QAccessible::playsSound?The object produces sound when interacted with.
QAccessible::pressed?The object is pressed.
QAccessible::readOnly?The object can usually be edited, but is explicitly set to read-only.
QAccessible::selectable?The object is selectable.
QAccessible::selectableText?The object has text which can be selected. This is different from selectable which refers to the object's children.
QAccessible::selected?The object is selected.
QAccessible::selfVoicing?The object describes itself through speech or sound.
QAccessible::sizeable?The object can be resized, e.g. top-level windows.
QAccessible::summaryElement?The object summarizes the state of the window and should be treated with priority.
QAccessible::supportsAutoCompletion?The object has auto-completion, for example in line edits or combo boxes.
QAccessible::traversed?The object is linked and has been visited.
QAccessible::updatesFrequently?The object changes frequently and needs to be refreshed when accessing it.
QAccessible::disabled?The object is unavailable to the user, e.g. a disabled widget.

Implementations of QAccessibleInterface::state() return a combination of these flags.

Member Function Documentation

State::State()

Constructs a new QAccessible::State with all states set to false.