PDA

View Full Version : Detect change to any cell in a QTableWidget



gib
26th June 2018, 03:44
I need to be able to detect when anything has been changed in a table, in order to know whether or not I need to rewrite a file. I see that one can detect a change in an item - is there a simple way to detect a change any item?

Thanks
Gib

Added after 49 minutes:

Solved by setting up a slot to respond to the cellChanged signal:
connect(tableWidget, SIGNAL(cellChanged(int, int) ),this, SLOT(ProtocolChanged(int, int)) );

ChristianEhrlicher
26th June 2018, 06:03
What about http://doc.qt.io/qt-5/qtablewidget.html#cellChanged ?