[SOLVED] QDate dateChanged() signal wont let me finished editing
i need to edit a date in my QTableWidget. when i double click the QTableWidget cell, QDateEdit widget will appear in the QTableWidget cell with its date according to the date on the QTableWidget cell before. when i am still selecting the date in the QDateEdit, the dateChanged() signal is emitted without letting me finished my edit.
any great ideas on how to go around this kind of problem?
yeah, it will close. and yes,kinda like editing step-by-step. let us say the current date is january 1 2010, when i change the month by clicking the up arrow on the right side of the widget, it will automatically close then the new date will appear as february 1 2010. and so with the days and years…
i dont have any ideas on how to implement this by waiting for me to finish it…
There is no such behavior if you do not set an item delegate. Qt uses QStyledItemDelegate [doc.trolltech.com] as a default. The date edit is only ended when you click on another cell oder press the return key.
This looks as if you use your own item delegate, that intercepts the edit/commit mechanism provided by Qt.
This short sample demonstrates the default behavior:
editingFinished() is a signal of
Signal editingFinished() is not used in QStyledItemDelegate to determine if one is done with editing an item in the view.
Why do you set a customized item delegate at all and which standard behavior do you overwrite?