[Qt-interest] my solution for masterdetail example

Nicola De Filippo nicola at nicoladefilippo.it
Fri Jan 1 12:10:46 CET 2010


Hi,
i have replaced in int Dialog::addNewAlbum (file dialog.cpp) this line

m.insertRecord(-1, record);
          
with this code:

QSqlTableModel m;
m.setTable("albums");
m.insertRecord(-1, record);
model->select();


i should know: is it correct solution?

	Good year
      Nicola



More information about the Qt-interest-old mailing list