PDA

View Full Version : How to know editing of QTableWidgetItem is finished



stella1016
27th March 2012, 10:58
My tableWidget is updated by certain actions. One of them is to edit the "Name" column by mouse double click.

I want update the new name in somewhere else when the edit is finished. But it seems that, signal cellDoubleClicked(int, int) can only catch the old name. How can I get the new name the moment when the editing is finished? Thanks in advance.

Lykurg
27th March 2012, 11:01
See QTableWidget::itemChanged().

stella1016
27th March 2012, 12:59
Thanks a lot. This is exactly what I am looking for!

See QTableWidget::itemChanged().