TimePickerDialog is a Dialog to select time More...
Inherits Dialog
This element was introduced in qt-components 4.7.
Dialog that shows a time picker.
TimePickerDialog { id: tDialog titleText: "Alarm Time" onAccepted: callbackFunction() } function launchDialog() { tDialog.open(); } function launchDialogToTime(hour, minute) { tDialog.hour = hour; tDialog.minute = minute; tDialog.fields = DateTime.Hours | DateTime.Minutes; tDialog.open(); } function callbackFunction() { result.text = tDialog.hour + ":" + tDialog.minute + ":" + tDialog.second }
See also Dialog.
acceptButtonText : string |
Optional, the button text for the accept button.
Property default is DateTime.All
Binary flag to set if the time picker should show hours, minutes, and/or seconds. Valid values are DateTime.Hours, DateTime.Minutes, DateTime.Seconds, DateTime.All. Can be combined with binary operator |, e.g. DateTime.Minutes | DateTime.Seconds
hour : int |
Property default is 0
The displayed hour.
Property default is the system time mode
Sets if the time picker should show time in 24-hour clock or 12-hour clock format. Valid values are DateTime.TwentyFourHours, DateTime.TwelveHours
minute : int |
Property default is 0
The displayed minute.
rejectButtonText : string |
Optional, the button text for the reject button.
second : int |
Property default is 0
The displayed second.
titleText : string |
If not null, it will be used as the title text for the dialog. If further customization is needed, use property title instead.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.