[Solved] QComboBox inside QTableWidget
I put some ComboBox inside a QTableWidget and this is ok.
I have a function where the only argument I have is the pointer to the Table.
How can I get the pointers to the QComboBoxes INSIDE that Table?
I tried this... but it obviously did not work.
@QComboBox* TableComboBoxes = TableComplexPulses->item(row,col)@
Cast it to QComboBox.
@QComboBox combo = qobject_cast<QComboBox>(tblWidget->cellWidget(row,col);@
Found my answer...here it is.
@QComboBox *combo = qobject_cast<QComboBox *>(TableComplexPulses->cellWidget(row,col));@
Edit: Seems I am too slow to post! :)