One cell in each row of a QTableWidget contains a combobox
for (each row in table ... ) {
QComboBox* combo = new QComboBox();
table->setCellWidget(row,col,combo);
combo->setCurrentIndex(node.type());
connect(combo, SIGNAL(currentIndexChanged(int)),this, SLOT(changed(int)));
....
}
In the handler function ::changed(int index) I have
QComboBox* combo=(QComboBox*)table->cellWidget(_row,_col);
combo->currentIndex()
To get back a copy of the combobox and get the new selection.
But I can't get the row/col.
None of the table cellXXXX signals is emitted when an embedded item is selected or changed and currentRow()/currentColumn() aren't set.