How to get a initial date, end date in QCalendarWidget
I need to get the initial date, end date and concatenate them, how can I do this?
What do you mean "initial date, end date"?
"concatenate them" - do you mean concatenate string representations of the dates or concatenate QDate classes?
calendar->setMaximumDate(QDate(2006, 7, 3));
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.