c++ - QDateedit date changes on mouse press -
i have qdateedit , set date on .but when mouse press on date part automatically changes dont want behaviour happen , happens when have following option on date edit,i want change date when user click on popup menu or when edits in line edit part.i have attcahed video better understanding.any on issue highly appreciated.
qdateedit *startdateedit = new qdateedit; qdateedit *enddateedit = new qdateedit; startdateedit->setcalendarpopup(true); startdateedit->setdate(qdate::currentdate()); enddateedit->setcalendarpopup(true); enddateedit->setdate(qdate::currentdate());
[sample][1] [1]: https://www.youtube.com/watch?v=qwn_qati6sg
as qdateedit class inherited qabstractspinbox can solve problem adding next (the problem seems little bug):
dateedit->setbuttonsymbols(qabstractspinbox::nobuttons);
Comments
Post a Comment