# class KDateWidget

###

Module | kdeui
Namespace |
Class | KDateWidget
Inherits | QWidget

A pushbutton to display or allow user selection of a date.

This widget can be used to display or allow user selection of a date.

See also KDatePicker

### methods

- KDateWidget (parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget | 0

  Constructs a date selection widget.

- KDateWidget (date, parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  date | QDate |
  parent | QWidget | 0

  Constructs a date selection widget with the initial date set to date.

- KDateWidget (a0)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QWidget | 0

- KDateWidget (a0, a1)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QDate |
  a1 | QWidget | 0

- calendar ( )

  returns KCalendarSystem

  Returns the currently selected calendar system.

  Returns a KCalendarSystem object

- changed (date)

  returns Nothing
  SIGNAL ("changed (const QDate&)")

  Argument | Type | Default
  --- | --- | ---
  date | QDate |

  Emitted whenever the date of the widget is changed, either with setDate() or via user selection.

- date ( )

  returns QDate

  Returns the currently selected date.

- init (date)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  date | QDate |

- setCalendar (calendar)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  calendar | KCalendarSystem | 0

  Changes the calendar system to use. Can use its own local locale if set.

  calendar - the calendar system object to use, defaults to global

  Returns true if the calendar system was successfully set, false otherwise

- setCalendar (calendarType)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  calendarType | QString |

  Changes the calendar system to use. Will always use global locale.

  calendarType - the calendar system type to use

  Returns true if the calendar system was successfully set, false otherwise

- setDate (date)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  date | QDate |

  Changes the selected date to date.

  Returns true if the date was successfully set, false otherwise

- slotDateChanged ( )

  returns Nothing