QAccessible::State Struct
struct QAccessible::State公共函数
State() |
详细说明
该结构定义了指示可访问对象状态的位标志。其值为
常量 | 说明 |
---|---|
active | 对象是活动窗口或容器中的活动子元素(聚焦容器时将获得焦点)。 |
adjustable | 对象代表一个可调整的值,例如滑块。 |
animated | 对象的外观经常变化。 |
busy | 对象暂时无法接受输入。 |
checkable | 对象可复选。 |
checked | 对象的复选框被选中。 |
checkStateMixed | 复选框的第三种状态(三态复选框中的半复选)。 |
collapsed | 对象已折叠,例如关闭的列表视图项或图标化窗口。 |
defaultButton | 对象表示对话框中的默认按钮。 |
defunct | 对象已不存在。 |
editable | 该对象具有文本载体(通常实现了文本接口)。 |
expandable | 该对象可展开,主要用于树形视图中的单元格。 |
expanded | 对象已展开,其子对象可见。 |
extSelectable | 对象支持扩展选择。 |
focusable | 该对象可以接收焦点。只有活动窗口中的对象可以接收焦点。 |
focused | 对象有键盘焦点。 |
hasPopup | 对象打开弹出窗口。 |
hotTracked | 对象的外观对鼠标指针位置敏感。 |
invalid | 对象不再有效(因为已被删除)。 |
invisible | 用户看不到该对象。 |
linked | 对象与另一个对象有链接,如超链接。 |
marqueed | 对象显示滚动内容,如日志视图。 |
modal | 对象阻止其他对象的输入。 |
movable | 对象可以移动。 |
multiLine | 对象有多行文本(换行),而不是单行文本。 |
multiSelectable | 对象支持多个选定项。 |
offscreen | 对象被可视区域剪切。屏幕外的对象也是不可见的。 |
passwordEdit | 该对象是一个密码字段,例如用于输入密码的行编辑器。 |
playsSound | 与对象交互时会发出声音。 |
pressed | 对象被按下。 |
readOnly | 该对象通常可以编辑,但被明确设置为只读。 |
searchEdit | 该对象是一个行编辑器,是搜索查询的输入。 |
selectable | 对象可选择。 |
selectableText | 该对象具有可选择的文本。这与可选择不同,后者指的是对象的子对象。 |
selected | 对象被选中,这与文本选择无关。 |
selfVoicing | 对象通过语音或声音描述自己。 |
sizeable | 对象可以调整大小,例如顶层窗口。 |
summaryElement | 对象概括了窗口的状态,应优先处理。 |
supportsAutoCompletion | 对象具有自动完成功能,例如在行编辑或组合框中。 |
traversed | 对象已链接并被访问过。 |
updatesFrequently | 对象经常变化,访问时需要刷新。 |
disabled | 用户无法使用该对象,如禁用的 widget。 |
QAccessibleInterface::state() 的实现将返回这些标志的组合。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.