[solved]Mapping a QComboBox displaying multiple columns
General and Desktop
3
Posts
2
Posters
3.8k
Views
1
Watching
-
hi everybody,
I'm using a QSqlRelationalTableModel with a QWidgetMapper.
For a field I need to show in a combo box name and surname that are in two different columns of the table, but I have to select only one ModelColumn of the model;
I know I can use a QSqlQueryModel with a concat, but doesn't it break the mapping if I don't use model->relationModel() as the combobox model?
thank you
Paolo -
Haven't used any of those classes, but it looks like something you might want to create a "QAbstractProxyModel":http://doc.qt.nokia.com/latest/qabstractproxymodel.html subclass for.