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

Popular posts from this blog

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -