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
qquickframe.cpp
Go to the documentation of this file.
1// Copyright (C) 2017 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
7
9
10/*!
11 \qmltype Frame
12 \inherits Pane
13//! \nativetype QQuickFrame
14 \inqmlmodule QtQuick.Controls
15 \since 5.7
16 \ingroup qtquickcontrols-containers
17 \brief Visual frame for a logical group of controls.
18
19 Frame is used to layout a logical group of controls together within a
20 visual frame. Frame does not provide a layout of its own, but requires
21 you to position its contents, for instance by creating a \l RowLayout
22 or a \l ColumnLayout.
23
24 Items declared as children of a Frame are automatically parented to the
25 Frame's \l {Control::}{contentItem}. Items created dynamically need to be
26 explicitly parented to the contentItem.
27
28 If only a single item is used within a Frame, it will resize to fit the
29 implicit size of its contained item. This makes it particularly suitable
30 for use together with layouts.
31
32 \image qtquickcontrols-frame.png
33
34 \snippet qtquickcontrols-frame.qml 1
35
36 \sa {Customizing Frame}, {Container Controls}
37*/
38
39QQuickFrame::QQuickFrame(QQuickItem *parent)
40 : QQuickPane(*(new QQuickFramePrivate), parent)
41{
42}
43
44QQuickFrame::QQuickFrame(QQuickFramePrivate &dd, QQuickItem *parent)
45 : QQuickPane(dd, parent)
46{
47}
48
49#if QT_CONFIG(accessibility)
50QAccessible::Role QQuickFrame::accessibleRole() const
51{
52 return QAccessible::Border;
53}
54#endif
55
56QT_END_NAMESPACE
57
58#include "moc_qquickframe_p.cpp"