Qt 6.11 is out! See what's new in the release
blog
[Solved] QComboBox inside QTableWidget
General and Desktop
3
Posts
2
Posters
1.9k
Views
1
Watching
-
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);@