Hi guys,

I have some trouble with the following: I want to get a couple of QStrings and put them into a QSqlRecord, the problem is, I am not sure on how to add fields to a record, I don't think the documentation is clear enough. In fact,

Qt Code:
  1. QSqlRecord patient;
  2. patient.setValue("name", "Abel");
To copy to clipboard, switch view to plain text mode 

simply gives me an error: "aggregate `QSqlRecord patient´ has incomplete type and cannot be defined"

Any code samples would be appreciated.

Thanks in advance,

Nefastious