Fluid
|
Control to select a single date. More...
#include <datepicker.h>
Public Types | |
enum | Mode { Year , Month } |
![]() | |
enum | Orientation { Landscape , Portrait } |
Signals | |
void | modeChanged () |
void | dayOfWeekRowVisibleChanged () |
void | weekNumberVisibleChanged () |
void | fromChanged () |
void | toChanged () |
void | selectedDateChanged () |
![]() | |
void | localeChanged () |
void | orientationChanged () |
void | backgroundChanged () |
void | headerChanged () |
void | selectorChanged () |
void | footerChanged () |
void | accepted (const QDate &date) |
void | rejected () |
Public Member Functions | |
DatePicker (QQuickItem *parent=nullptr) | |
Mode | mode () const |
void | setMode (Mode mode) |
bool | dayOfWeekRowVisible () const |
void | setDayOfWeekRowVisible (bool value) |
bool | weekNumberVisible () const |
void | setWeekNumberVisible (bool value) |
QDate | from () const |
void | setFrom (const QDate &date) |
void | resetFrom () |
QDate | to () const |
void | setTo (const QDate &date) |
void | resetTo () |
QDate | selectedDate () const |
void | setSelectedDate (const QDate &date) |
![]() | |
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 | |
Mode | mode |
bool | dayOfWeekRowVisible |
bool | weekNumberVisible |
QDate | from |
QDate | to |
QDate | selectedDate |
![]() | |
QLocale | locale |
Orientation | orientation |
QQuickItem * | background |
QQuickItem * | header |
QQuickItem * | selector |
QQuickItem * | footer |
Additional Inherited Members | |
![]() | |
void | componentComplete () override |
void | geometryChange (const QRectF &newGeometry, const QRectF &oldGeometry) override |
Control to select a single date.
Stand-alone control to select a single date from a calendar.
For more information you can read the Material Design guidelines.
enum DatePicker::Mode |
|
explicit |
bool DatePicker::dayOfWeekRowVisible | ( | ) | const |
|
signal |
QDate DatePicker::from | ( | ) | const |
|
signal |
DatePicker::Mode DatePicker::mode | ( | ) | const |
|
signal |
void DatePicker::resetFrom | ( | ) |
void DatePicker::resetTo | ( | ) |
QDate DatePicker::selectedDate | ( | ) | const |
|
signal |
void DatePicker::setDayOfWeekRowVisible | ( | bool | value | ) |
void DatePicker::setFrom | ( | const QDate & | date | ) |
void DatePicker::setMode | ( | DatePicker::Mode | mode | ) |
void DatePicker::setSelectedDate | ( | const QDate & | date | ) |
void DatePicker::setTo | ( | const QDate & | date | ) |
void DatePicker::setWeekNumberVisible | ( | bool | value | ) |
QDate DatePicker::to | ( | ) | const |
|
signal |
bool DatePicker::weekNumberVisible | ( | ) | const |
|
signal |
|
readwrite |
This property determines the visibility of the day of week row.
|
readwrite |
This property holds the start date.
|
readwrite |
This property holds the current selection mode.
It is changed by the user, clicking on the year or calendar.
Possible values:
|
readwrite |
This property holds the date that has been selected by the user. The default value is the current date.
|
readwrite |
This property holds the end date.
|
readwrite |
This property determines the visibility of the week number column.