Hello,

I'm trying to fill a QComboBox with my QSqlRelationalTableModel this way:

First I populate my model:
model->setTable();
model->select();
model->setRelation();

After that I set the model for my QComboBox:

comboBox->setModel(model);
comboBox->setModelColumn(2);

And I use a QDataWidgetMapper:

mapper->setItemDelegate(new QSqlRelationalDelegate(this));
mapper->setModel(model);
mapper->addMapping(comboBox,2);

Following this post:

http://www.qtcentre.org/threads/2435...onalTableModel

The point is, the comboBox is actually filled (I can print all its values on the prompt) but nothing appears in the QComboBox.
I'm assuming that it may be a format problem? Or it's about the Qt:isplayRole but I didn't find a proper way to make it works.

Thanks for your help