Home

Date Picker Example

This example shows how to implement a date picker widget with a popup calendar, using the QtCalendarWidget class.

The date picker widget is composed by a QDateEdit widget for simple date selection, and a QPushButton widget. When pressing the button the calendar dialog appears, enabling a more convenient way of selecting a date.

The popup dialog contains a QtCalendarWidget object, header labels displaying the currently selected month and year, and two navigation buttons. The example shows how to make use of QtCalendarWidget::currentMonthChanged() signal in order to update the popup dialog.

The source files can be found in examples/datepicker directory of the package.


Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Solutions