Some fields in one PostgreSQL table are configured with "NOT NULL".
Inside my Qt 4.3 application I try to detect this constraint, but I am trying with
Qt Code:
  1. if(my_model.requiredStatus == QSqlField::Required)
  2. // Warn user that this field must be filled
To copy to clipboard, switch view to plain text mode 
But it allways returns -1 (QSqlField::Unknown).
If this is not the method to follow, how can PostgreSQL tell to Qt when a field has some restriction (check, not null...)?