Reputation: 810
I am working on python plugins.I designed my form using pyqt4 designer. I used Qdatedit control with calendar popup property to true.I wanted to call one function on selecting date from qdateedit. I tried something like
self.connect(self.dateEdit, SIGNAL("clicked()"), self.start_date_dateedit)
self.connect(self.dateEdit, SIGNAL("selectionChanged()"), self.start_date_dateedit)
to call function start_date_dateedit.But no success. What is the event to call a function from qdateedit??
How to set current date into qdatedit??
Upvotes: 0
Views: 5186
Reputation: 36715
QDateEdit
inherits from QDateTimeEdit
, so you can use:
void dateChanged ( const QDate & date )
void dateTimeChanged ( const QDateTime & datetime )
void timeChanged ( const QTime & time )
You are probably looking for:
self.dateEdit.dateChanged.connect(self.start_date_dateedit)
Upvotes: 2