我有一个QDateEdit与日历启用了,我试图捕获的底编辑:
the_date = QDateEdit(...)
<some more initialization>
the_date.setCalendarPopup(True)
the_date.editingFinished.connect(checkDate)
...
def checkDate():
print ("checkDate called")
如果我编辑的日期从键盘 checkDate()
被称为当焦点离开的部件通过跳格,打回报,等等。 但是,如果我点击下箭头部队,显示的日历, checkDate()
被称为时立即日历中出现的和再次当小组件失去了焦点。
我不想绑到userDateChanged因为这信号在每次按键在编辑框。