Re: [PyQt] QTableWidgetItem editingFinished

2009-07-07 Thread simozack
2009/7/6 Mario Daniel Carugno carug...@gmail.com: It works exactly like the QLineEdit, because the widget it calls IS a QLineEdit (really not always: if it is a number it calls a QSpinBox or a QDoubleSpinBox, if it is a date a QDateEdit or a QDateTimeEdit etc...). The widget is returned by

[PyQt] QTableWidgetItem editingFinished

2009-07-06 Thread Mario Daniel Carugno
Hi list, i have a little problem here. I setup a QTableWidget with editable items. When i press ENTER or doubleclick on an item, it becomes editable. After edit, when i press ENTER again, editing ends. I need to trap that last event. I need to do something when user press ENTER after editing, to

Re: [PyQt] QTableWidgetItem editingFinished

2009-07-06 Thread simozack
It works exactly like the QLineEdit, because the widget it calls IS a QLineEdit (really not always: if it is a number it calls a QSpinBox or a QDoubleSpinBox, if it is a date a QDateEdit or a QDateTimeEdit etc...). The widget is returned by the function QTableWidget.itemDelegate(). Bye, Simone