Originally Posted by grellsworth QSqlRelationalTableModel model; model.setTable("tracks"); model.setEditStrategy(QSqlTableModel::OnManualSubm it); model.select(); setTable(&model); You create the model on the stack, so it gets destroyed as soon as it goes out of scope, leaving a dangling pointer behind. Better create that model on the heap (i.e. using the new operator).
grellsworth (3rd July 2007)
Forum Rules
Bookmarks