void QDateTimeEdit::setCalendarWidget(QCalendarWidget * calendarWidget)
Sets the given calendarWidget as the widget to be used for the calendar pop-up. The editor does not automatically take ownership of the calendar widget.
Note: calendarPopup must be set to true before setting the calendar widget.
This function was introduced in QtWidgets 4.4.
See also calendarWidget() and calendarPopup.