6#include <QtGui/qguiapplication.h>
8#include <QtQuick/qquickitem.h>
9#include <QtQuick/private/qquickitem_p.h>
13#if QT_CONFIG(accessibility)
17QAccessibleQuickWindow::QAccessibleQuickWindow(
QQuickWindow *
object)
25 return accessibleUnignoredChildren(ci);
29int QAccessibleQuickWindow::childCount()
const
31 return rootItems().size();
34QAccessibleInterface *QAccessibleQuickWindow::parent()
const
37 return QAccessible::queryAccessibleInterface(
qApp);
40QAccessibleInterface *QAccessibleQuickWindow::child(
int index)
const
44 return QAccessible::queryAccessibleInterface(kids.
at(
index));
48QAccessibleInterface *QAccessibleQuickWindow::focusChild()
const
52 QAccessibleInterface *
iface = QAccessible::queryAccessibleInterface(focusObject);
53 if (!iface || iface ==
this || !
iface->focusChild())
55 return iface->focusChild();
60QAccessible::Role QAccessibleQuickWindow::role()
const
62 return QAccessible::Window;
75QRect QAccessibleQuickWindow::rect()
const
82QString QAccessibleQuickWindow::text(QAccessible::Text
text)
const
86#ifdef Q_ACCESSIBLE_QUICK_ITEM_ENABLE_DEBUG_DESCRIPTION
87 if (
text == QAccessible::DebugDescription) {
96QAccessibleInterface *QAccessibleQuickWindow::childAt(
int x,
int y)
const
99 for (
int i = childCount() - 1;
i >= 0; --
i) {
100 QAccessibleInterface *childIface =
child(
i);
101 if (childIface && !childIface->state().invisible) {
102 if (QAccessibleInterface *iface = childIface->childAt(
x,
y))
104 if (childIface->rect().contains(
x,
y))
111int QAccessibleQuickWindow::indexOfChild(
const QAccessibleInterface *iface)
const
116 i = roots.
size() - 1;
static QWindow * focusWindow()
Returns the QWindow that receives events tied to focus, such as key events.
qsizetype size() const noexcept
const_reference at(qsizetype i) const noexcept
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
\qmltype Window \instantiates QQuickWindow \inqmlmodule QtQuick
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromLatin1(QByteArrayView ba)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Combined button and popup list for selecting options.
constexpr QBindableInterface iface
GLint GLint GLint GLint GLint x
[0]
GLint GLsizei GLsizei height
const char className[16]
[1]
obj metaObject() -> className()