[Qt-interest] Overriding QSqlRelationalTableModel behaviour concerning NULL values

bar tomas bartomas at gmail.com
Wed Apr 7 11:30:21 CEST 2010


Hi,

The default behaviour of QSqlRelationalTableModel is to not  show
records that have a NULL foreign key value.
This is due apparently to QSqlRelationalTableModel performing an inner
join instead of a left join.
Do you know what method I would need to override to change this
behaviour? Has anyone done this and have a code example of how this
can be done?

Many thanks.



More information about the Qt-interest-old mailing list