summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_gui_widgets_qcalendarwidget.cpp
blob: 10ceecc0e796c63534f7aca852f9662028fcfe45 (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
//! [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]