I am using PyQt, but my question is general Qt:
I have a QTableWidget that is configured by the updateTable function. It writes data from DATASET to the table when it is called. Unfortunately, this causes my QTableWidget to emit a cellChanged () signal for each cell.
The cellChanged () signal is connected to the on_tableWidget_cellChanged function, which reads the contents of the changed cell and writes it back to DATASET. This is necessary to allow the user to manually modify the data.
Therefore, every time a table is updated, its contents are written to DATASET.
Is it possible to distinguish whether the cell has been changed by the user or updated?
I was thinking of disabling on_tableWidget_cellChanged by updateTable temporarily, but it seems a bit dirty.
source
share