[solved]Mapping a QComboBox displaying multiple columns
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
2 replies
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.
You must log in to post a reply. Not a member yet? Register here!


