blob: 8aaddba65623f74461a9a1088d760e0661b03441 (
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
|
import QtQuick 2.0
import QtQuick.Layouts 1.0
import Qt.labs.calendar 1.0
//! [1]
GridLayout {
columns: 2
DayOfWeekRow {
locale: view.locale
Layout.column: 1
Layout.fillWidth: true
}
WeekNumberColumn {
month: view.month
year: view.year
locale: view.locale
Layout.fillHeight: true
}
CalendarView {
id: view
month: 12
year: 2015
locale: Qt.locale("en_US")
Layout.fillWidth: true
Layout.fillHeight: true
}
}
//! [1]
|