anbu01
12th January 2017, 08:30
Hello,
I have a QDateEdit and set some date on it .But when i mouse press on the widget the date automatically changes i dont want this behaviour to happen and this happens only when i have the following option on date edit,i want to change the date only when user click on the popup menu or when he edits in line edit part.I have attached a video for much better understanding.Any help on the issue is highly appreciated.
QDateEdit *startDateEdit = new QDateEdit;
QDateEdit *endDateEdit = new QDateEdit;
startDateEdit->setCalendarPopup(true);
startDateEdit->setDate(QDate::currentDate());
endDateEdit->setCalendarPopup(true);
endDateEdit->setDate(QDate::currentDate());
https://www.youtube.com/watch?v=qwN_QAti6Sg
I have a QDateEdit and set some date on it .But when i mouse press on the widget the date automatically changes i dont want this behaviour to happen and this happens only when i have the following option on date edit,i want to change the date only when user click on the popup menu or when he edits in line edit part.I have attached a video for much better understanding.Any help on the issue is highly appreciated.
QDateEdit *startDateEdit = new QDateEdit;
QDateEdit *endDateEdit = new QDateEdit;
startDateEdit->setCalendarPopup(true);
startDateEdit->setDate(QDate::currentDate());
endDateEdit->setCalendarPopup(true);
endDateEdit->setDate(QDate::currentDate());
https://www.youtube.com/watch?v=qwN_QAti6Sg