Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickfocusscope.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 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// Qt-Security score:significant reason:default
4
6
8
9/*!
10 \qmltype FocusScope
11 \nativetype QQuickFocusScope
12 \inqmlmodule QtQuick
13 \ingroup qtquick-input
14
15 \brief Explicitly creates a focus scope.
16 \inherits Item
17
18 Focus scopes assist in keyboard focus handling when building reusable QML
19 components. All the details are covered in the
20 \l {Keyboard Focus in Qt Quick}{keyboard focus documentation}.
21
22 \sa {Qt Quick Examples - Key Interaction}
23*/
24QQuickFocusScope::QQuickFocusScope(QQuickItem *parent)
25: QQuickItem(parent)
26{
27 setFlag(ItemIsFocusScope);
28}
29
30QT_END_NAMESPACE
31
32#include "moc_qquickfocusscope_p.cpp"