PDA

View Full Version : How to detect when item is changed in the table view?



schmimona
15th August 2011, 08:29
I have this table view where I write some data in different columns. I am adding the data by writing it in text boxes and clicking the "add" button. And I am modifying it by selecting a row in the table view, copying the data into the text boxes, editing it and pressing the "save" button.

The data from the text boxes apart from being sent to the table view is also being used for other calculations in my application.

I would like to be able to modify the data directly on the table view and then send the changed data to do the calculations that I need in another class - in my case.

For now I can modify the data on the table view but how could I send the signal that the data has been modified in the view?

Any ideas?

cplus
15th August 2011, 09:06
QStandardItemModel has a signal named itemChanged.