[SailfishDevel] datepickerdialog
nicola at nicoladefilippo.it
nicola at nicoladefilippo.it
Wed Feb 27 08:34:29 UTC 2013
Hi,
i'm trying
https://sailfishos.org/sailfish-silica/qml-sailfishsilica-datepickerdialog.html
but this code has a error:
Button {
id: button
text: "choose a date"
onClicked: pageStack.openDialog("Sailfish.Silica.DatePickerDialog", {
year: 2012
month: 11
day: 23
onAccepted: {
button.text = "You chose: " + dateText
}
})
}
thus i changed it in (added ","):
Button {
id: button
text: "choose a date"
onClicked:
pageStack.openDialog("Sailfish.Silica.DatePickerDialog", {
year: 2012,
month: 11,
day: 23,
/*onAccepted: {
button.text = "You chose: " + dateText
}*/
})
}
but commenting onAccepted obviously is impossible to show selected date.
Where is the error?
Nicola
More information about the Devel
mailing list