[Interest] How to insert a new record with generated primary key into a QSqlTableModel
Knut Krause
knut.krause at lagom.de
Thu Dec 12 15:15:42 CET 2013
Hi,
I got a DataMapper set up like http://pastebin.com/k9kB1N1a
Editing the existing model works really fine but how can I add a new customer?
I basically need to insert a new record to the model with an auto generated id
(from my DB) and then set the mapper to the correct ModelIndex. How would you
do that?
regards
Knut
More information about the Interest
mailing list