int row, col;
for(row = 0; row < tableWidget->rowCount(); row++)
{
for(col = 0; col < tableWidget->columnCount(); col++)
{
connect(tableWidget, SIGNAL(cellChanged(int,int)), this, SLOT(tableValueChanged(int, int)));
}
}
void className::tableValueChanged(int row, int col)
{
qDebug("value changed row = %d, col = %d", row, col);
}
int row, col;
for(row = 0; row < tableWidget->rowCount(); row++)
{
for(col = 0; col < tableWidget->columnCount(); col++)
{
connect(tableWidget, SIGNAL(cellChanged(int,int)), this, SLOT(tableValueChanged(int, int)));
}
}
void className::tableValueChanged(int row, int col)
{
qDebug("value changed row = %d, col = %d", row, col);
}
To copy to clipboard, switch view to plain text mode
Bookmarks