Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qaccessiblequickwidgetfactory.cpp
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
6
8
9#if QT_CONFIG(accessibility)
10
11QAccessibleInterface *qAccessibleQuickWidgetFactory(const QString &classname, QObject *object)
12{
13 if (classname == QLatin1String("QQuickWidget")) {
14 return new QAccessibleQuickWidget(qobject_cast<QQuickWidget *>(object));
15 } else if (classname == QLatin1String("QQuickWidgetOffscreenWindow")) {
16 return new QAccessibleQuickWidgetOffscreenWindow(qobject_cast<QQuickWindow *>(object));
17 }
18 return 0;
19}
20
21#endif // accessibility
22
24
\inmodule QtCore
Definition qobject.h:103
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
QLatin1StringView QLatin1String
Definition qstringfwd.h:31