This application will make use of two widgets, Calendar Widget
and Date Edit
. The date selected by the user from Calendar Widget
will be reflected in the Date Edit
widget. Both widgets are commonly used when displaying current date as well as the date required by the user, with the only difference that Calendar Widget
has a bigger and more readable visual, whereas the Date Edit
widget consumes much less space.
To make this recipe, we need to understand the following things first:
Calendar Widget
displays the desired monthly calendar- The
QDate
class accesses the date from the system clock - The
Date Edit
widget will display the date that is selected fromCalendar Widget
So, let's first understand the preceding widgets and class one by one.