PDA

View Full Version : QDate dateChanged() signal



xeroblast
8th December 2010, 08:04
hi,

i want to edit the date in my database using the QDateEdit inside the QTableWidget but the signal dateChanged(QDate) wont let me finish editing. it will automatically send the signal even i am still selecting the month or the day or the year.

why???

franz
8th December 2010, 10:31
It's because dateChanged() is emitted whenever you change the date. Look at editingFinished() instead.

xeroblast
9th December 2010, 02:58
edittingFinished() error --- Object::connect: No such signal QDateEdit::edittingFinished(QDate)


edittingFinished() error --- Object::connect: No such signal QDateEdit::edittingFinished(QDate)

my bad wrong spelling... editingFinished() -- single 't' only...