C++ Qt QComboBox with tableview
You should use the setModelColumn()
because QComboBox
show only one column at time.
like this:
connect(table, &QTableView::pressed, [cb](const QModelIndex &index){
cb->setModelColumn(index.column());
});
You should use the setModelColumn()
because QComboBox
show only one column at time.
like this:
connect(table, &QTableView::pressed, [cb](const QModelIndex &index){
cb->setModelColumn(index.column());
});