[Solved] QComboBox inside QTableWidget
-
Hi,
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)@ -
Use "QTableWidget::cellWidget":http://qt-project.org/doc/qt-4.8/qtablewidget.html#cellWidget
Cast it to QComboBox.
@QComboBox combo = qobject_cast<QComboBox>(tblWidget->cellWidget(row,col);@