diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2017-07-31 16:18:28 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2017-08-11 09:22:35 +0000 |
commit | a77494140324c3ede1f7c16086593c070d81e2b3 (patch) | |
tree | da06d3fb435f7da5b2584a9f4eaea40fd8d15072 | |
parent | 490f0704ac817c3e5d87e74b665cc770f7ab28f8 (diff) | |
download | qtquickcontrols-a77494140324c3ede1f7c16086593c070d81e2b3.tar.gz |
Calendar: add a doc example that sets minimum/maximumDate
Change-Id: Ie2fb915a927d4c3481afa6e4ac64089440f7ac9c
Reviewed-by: Nico Vertriest <nico.vertriest@qt.io>
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
-rw-r--r-- | src/controls/Calendar.qml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/controls/Calendar.qml b/src/controls/Calendar.qml index 96896480..c5347c51 100644 --- a/src/controls/Calendar.qml +++ b/src/controls/Calendar.qml @@ -62,6 +62,13 @@ import QtQuick.Controls.Private 1.0 \l maximumDate. The earliest minimum date that can be set is 1 January, 1 AD. The latest maximum date that can be set is 25 October, 275759 AD. + \code + Calendar { + minimumDate: new Date(2017, 0, 1) + maximumDate: new Date(2018, 0, 1) + } + \endcode + The selected date is displayed using the format in the application's default locale. |