Fluid
|
Control to select a time. More...
#include <timepicker.h>
Signals | |
void | prefer24HourChanged () |
void | selectedTimeChanged () |
![]() | |
void | localeChanged () |
void | orientationChanged () |
void | backgroundChanged () |
void | headerChanged () |
void | selectorChanged () |
void | footerChanged () |
void | accepted (const QDate &date) |
void | rejected () |
Public Member Functions | |
TimePicker (QQuickItem *parent=nullptr) | |
bool | prefer24Hour () const |
void | setPrefer24Hour (bool value) |
QTime | selectedTime () const |
void | setSelectedTime (const QTime &time) |
![]() | |
Picker (QQuickItem *parent=nullptr) | |
QLocale | locale () const |
void | setLocale (const QLocale &locale) |
Orientation | orientation () const |
void | setOrientation (Orientation orientation) |
void | resetOrientation () |
QQuickItem * | background () const |
void | setBackground (QQuickItem *item) |
QQuickItem * | header () const |
void | setHeader (QQuickItem *item) |
QQuickItem * | selector () const |
void | setSelector (QQuickItem *item) |
QQuickItem * | footer () const |
void | setFooter (QQuickItem *item) |
Properties | |
bool | prefer24Hour |
QTime | selectedTime |
![]() | |
QLocale | locale |
Orientation | orientation |
QQuickItem * | background |
QQuickItem * | header |
QQuickItem * | selector |
QQuickItem * | footer |
Additional Inherited Members | |
![]() | |
enum | Orientation { Landscape , Portrait } |
![]() | |
void | componentComplete () override |
void | geometryChange (const QRectF &newGeometry, const QRectF &oldGeometry) override |
Control to select a time.
Stand-alone control to select a time.
For more information you can read the Material Design guidelines.
|
explicit |
bool TimePicker::prefer24Hour | ( | ) | const |
|
signal |
QTime TimePicker::selectedTime | ( | ) | const |
|
signal |
void TimePicker::setPrefer24Hour | ( | bool | value | ) |
void TimePicker::setSelectedTime | ( | const QTime & | time | ) |
|
readwrite |
This property determines the visibility of the AM/PM switch.
|
readwrite |
This property holds the time that has been selected by the user. The default value is the current time.