[Qt-interest] QTableWidget cellChanged signal called while populating table

Robert Wood robert.wood at apostrophe.co.uk
Mon Feb 8 19:27:12 CET 2010


I am populating a QTableWidget with a load of data from a sql table and 
I want to be able to call a routine when a *user* changes a cell in the 
table.

void QTableWidget::cellChanged ( int row, int column ) does indeed, 
work, but the problem is that when I'm populating the table with the 
data I've extracted from the sql table, this routine is also called 
which I don't want!

Is the only way round this to have the "connect" line this signal uses 
*after* I have populated the table? I don't really like that as there 
could conceivably be other methods of changing a cell's data that would 
also call the routine.

Many thanks,

Rob



More information about the Qt-interest-old mailing list