diff options
Diffstat (limited to 'src/controls/TabView.qml')
| -rw-r--r-- | src/controls/TabView.qml | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/controls/TabView.qml b/src/controls/TabView.qml index 440606e01..f8fd3ff13 100644 --- a/src/controls/TabView.qml +++ b/src/controls/TabView.qml @@ -49,7 +49,30 @@ import QtQuick.Controls.Private 1.0 \ingroup views \brief A control that allows the user to select one of multiple stacked items. - You can create a custom appearance for a TabView by + \image tabview.png + + TabView provides tab-based navigation model for your application. + For example, the following snippet uses tabs to present rectangles of + different color on each tab page: + + \qml + TabView { + Tab { + title: "Red" + Rectangle { color: "red" } + } + Tab { + title: "Blue" + Rectangle { color: "blue" } + } + Tab { + title: "Green" + Rectangle { color: "green" } + } + } + \endqml + + \note You can create a custom appearance for a TabView by assigning a \l {QtQuick.Controls.Styles::TabViewStyle}{TabViewStyle}. */ |
