Shows the date picker dialog. More...
Inherits CommonDialog
This element was introduced in Qt Quick Components 1.0.
The code snippet below illustrates how to create a DatePickerDialog.
DatePickerDialog {
id: tDialog
titleText: "Date of birth"
onAccepted: callbackFunction()
}
function launchDialog() {
tDialog.open();
}
function launchDialogToToday() {
var d = new Date();
tDialog.year = d.getFullYear();
tDialog.month = d.getMonth();
tDialog.day = d.getDate();
tDialog.open();
}
function callbackFunction() {
result.text = tDialog.year + " " + tDialog.month + " " + tDialog.day
}
See also Dialog.
The maximum year shown on the tumbler. You should set this property only once during the construction. If you modify it afterwards everything is uninitialized. The default value is current year + 20. The value is optional.
The minimum year shown on the tumbler. You should set this property only once during the construction. If you modify it afterwards everything is uninitialized. The default value is current year. The value is optional.
The title text for the dialog if the value is not null. If further customization is needed, use the title property instead.