[solved]Mapping a QComboBox displaying multiple columns
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?
Haven’t used any of those classes, but it looks like something you might want to create a QAbstractProxyModel [doc.qt.nokia.com] subclass for.