How to get a initial date, end date in QCalendarWidget
-
end date:
@
calendar->setMaximumDate(QDate(2006, 7, 3));
@
Initial date:
@
QDate myStartDate(calendar->selectedDate ());
@
What do you want with the concatenate the dates? -
Hope you are asking for initial date and end dates of QCalendarWIdget instance itself. You can look at the maximumDate and minimumDate() method. Both return QDate. You can QDate.toString() get the string and concanate them.