If you want the user to enter a date, you need to give the user an opportunity to do so.

Show the calendar widget and connec to one of its selectionChanged() signal and then proceed with the selected date.

Cheers,
_