[PyQt] Nullable foreign keys
Catriona Johnson
catriona.johnson at gmail.com
Thu Feb 14 00:23:02 GMT 2008
Hello
I have a QSqlRelationalTableModel which is viewed using a QTableView
and QSqlRelationalDelegate to give comboboxes for foreign key fields.
My question is how do I handle nullable foreign keys? If a foreign key
is null for a particular record/row it is not being displayed in the
QTableView and there seems to be no way of having a null value in a
combo box.
I could have a null value in the related table but I don't really want
to do this
Thanks in advance
More information about the PyQt
mailing list