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 {Frame with visible border containing grouped controls}
34
35 \snippet qtquickcontrols-frame.qml 1
36
37 \sa {Customizing Frame}, {Container Controls}
38*/
39
40QQuickFrame::QQuickFrame(QQuickItem *parent)
41 : QQuickPane(*(new QQuickFramePrivate), parent)
42{
43}
44
45QQuickFrame::QQuickFrame(QQuickFramePrivate &dd, QQuickItem *parent)
46 : QQuickPane(dd, parent)
47{
48}
49
50#if QT_CONFIG(accessibility)
51QAccessible::Role QQuickFrame::accessibleRole() const
52{
53 return QAccessible::Border;
54}
55#endif
56
57QT_END_NAMESPACE
58
59#include "moc_qquickframe_p.cpp"
Combined button and popup list for selecting options.