MonthGrid¶
Fluent calendar month grid for DatePicker / CalendarDatePicker.
import QtQuick.Controls.QWinUI3 · src/style/QWinUI3/MonthGrid.qml
Category: Styled controls · Library: v2.80
Extends AbstractMonthGrid.
Example¶
MonthGrid {
id: grid
month: (new Date()).getMonth()
year: (new Date()).getFullYear()
onClicked: (date) => pick(date)
}
// --- API ---
// grid.month / year / locale / title / clicked(date)
Notes¶
Style-only Fluent chrome for Qt Quick Controls MonthGrid. Public API is the Qt Quick Controls MonthGrid type; this file supplies visuals/metrics only.
API¶
Properties¶
| Name | Type | Description |
|---|---|---|
selectedDate |
date |
Selected date |
selectionMode |
string |
single | multiple | range (2.31 CalendarView) |
selectedDates |
var |
Selected dates when selectionMode === "multiple" |
rangeStart |
date |
Range endpoints when selectionMode === "range" |
rangeEnd |
date |
— |
Signals¶
No custom signals (use inherited signals from the base type).
Methods¶
| Signature | Description |
|---|---|
sameDay(a, b) |
True when two dates are the same calendar day |
isInRange(d) |
— |
isMultiSelected(d) |
— |
isRangeEndpoint(d) |
— |
Generated from module sources by scripts/generate_component_docs.py — do not edit by hand.