summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/code/src_gui_widgets_qcalendarwidget.cpp
blob: 712a84ac2ae58aa10a1d6f4f2dc1fd6f3481fb48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

//! [0]
QCalendarWidget *calendar;
calendar->setGridVisible(true);
//! [0]


//! [1]
QCalendarWidget *calendar;
calendar->setGridVisible(true);
calendar->setMinimumDate(QDate(2006, 6, 19));
//! [1]


//! [2]
QCalendarWidget *calendar;
calendar->setGridVisible(true);
calendar->setMaximumDate(QDate(2006, 7, 3));
//! [2]


//! [3]
QCalendarWidget *calendar;

calendar->setDateRange(min, max);
//! [3]


//! [4]
QCalendarWidget *calendar;

calendar->setMinimumDate(min);
calendar->setMaximumDate(max);
//! [4]


//! [5]
QCalendarWidget *calendar;
calendar->setGridVisible(true);
//! [5]