diff options
author | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-04-13 03:00:59 +0200 |
---|---|---|
committer | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-04-13 03:00:59 +0200 |
commit | ced7d5af9caeedd7b3a2278b052a0b0f7bf951b7 (patch) | |
tree | 71a123c1058574f9213936c01a0e59cc6e87f33f /src/quicktemplates2/qquickpane.cpp | |
parent | 131210b59133fcebe0ab3c7823777f2b859dc7cd (diff) | |
parent | bd126fdea95ed994fdd35d50e445b45af75657ab (diff) |
Merge remote-tracking branch 'origin/5.12' into 5.13v5.13.0-beta3
Change-Id: Ice7d2ed56c85521a946b218d84087b255d3613ae
Diffstat (limited to 'src/quicktemplates2/qquickpane.cpp')
-rw-r--r-- | src/quicktemplates2/qquickpane.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickpane.cpp b/src/quicktemplates2/qquickpane.cpp index 3edbce9d..fd9d2cf0 100644 --- a/src/quicktemplates2/qquickpane.cpp +++ b/src/quicktemplates2/qquickpane.cpp @@ -103,6 +103,22 @@ QT_BEGIN_NAMESPACE } \endcode + If the \l contentItem has no implicit size and only one child, Pane will + use the implicit size of that child. For example, in the following code, + the Pane will assume the size of the Rectangle: + + \code + Pane { + Item { + Rectangle { + implicitWidth: 200 + implicitHeight: 200 + color: "salmon" + } + } + } + \endcode + \sa {Customizing Pane}, {Container Controls}, {Focus Management in Qt Quick Controls 2}, {Event Handling} */ |