[Qt-interest] QSqlRelationalDelegate and QDataWidgetMapper

Christian Gagneraud cgagneraud at techworks.ie
Mon Feb 8 22:26:10 CET 2010


Hi There,

I'm using a QTableView with a QSqlRelationalTableModel and a 
QSqlRelationalDelegate, this works great.
In another QDialog, I'm using as well a QDataWidgetMapper, and it 
doesn't seems to work when there is a relation set-up in the model (I 
got an empty field)
I tried to use on my form a QLineEdit or a QComboBox, I tried to 
set-up the item delegate of the mapper as well with a 
QSqlRelationalDelegate but none of these have worked so far.

Is the QSqlRelationalDelegate supposed to work seamlessly with a 
QTableView and QDataWidgetMapper? Or is it me that do something wrong?

Any help or point-out appreciated.

Regards,
Chris



More information about the Qt-interest-old mailing list