Hi,

I am experimenting a piece of code based on this example: http://doc.trolltech.com/4.3/qsqlrel...l.html#details
When i try to insert a new record and "forget" to select the "City" the insert fails because i have the FK CONSTRAINT.

Is there an easy way, without creating my own delegate, for selecting a default value from the referenced table?

Thanks