diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-10-26 08:42:45 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-10-31 11:23:58 +0000 |
commit | a44d4b5f22799d26414ba8e635cd5ccd88ca1e7d (patch) | |
tree | ef01a12f1cdada09c5434057666ac1c238ee9ef9 /src/quicktemplates2/qquickcheckbox.cpp | |
parent | 296d609c4f32489e52c69d5992faae3eeda553af (diff) |
Doc: add an example of managing hierarchical checkbox groups
Task-number: QTBUG-56295
Change-Id: I3cd16bbc2561b565e1b463d389c2ae34e6cfc7dd
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquickcheckbox.cpp')
-rw-r--r-- | src/quicktemplates2/qquickcheckbox.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquickcheckbox.cpp b/src/quicktemplates2/qquickcheckbox.cpp index 5fb154dd..7e363b88 100644 --- a/src/quicktemplates2/qquickcheckbox.cpp +++ b/src/quicktemplates2/qquickcheckbox.cpp @@ -83,7 +83,17 @@ QT_BEGIN_NAMESPACE } \endcode - \sa {Customizing CheckBox}, {Button Controls} + Hierarchical checkbox groups can be managed with a non-exclusive + \l ButtonGroup. + + \image qtquickcontrols2-checkbox-group.png + + The following example illustrates how the combined check state of + children can be bound to the check state of the parent checkbox: + + \snippet qtquickcontrols2-checkbox-group.qml 1 + + \sa {Customizing CheckBox}, ButtonGroup, {Button Controls} */ class QQuickCheckBoxPrivate : public QQuickAbstractButtonPrivate |