QAbstractItemView::setItemDelegate() is giving me an empty combobox!
Solved
General and Desktop
-
According to documentation:
"To use the class, simply call QAbstractItemView::setItemDelegate() on the view with an instance of QSqlRelationalDelegate"
and I used it like so:
QTableView* connectView(QSqlRelationalTableModel* model, QTableView* view, const QString& title = "")
{
view->setModel(model);
view->setWindowTitle(title);
view->setItemDelegate(new QSqlRelationalDelegate(view));
return view;
}but the combobox for the foreign keys appear empty!!
-