Thanks for your reply.
I'm certainly not starting a new thread - don't think Qt is doing that on it's own.
I think everything is bound...
Qt Code:
view->setHorizontalHeader(header); view->setModel(model); model->setTable("log");To copy to clipboard, switch view to plain text mode
And the model is bound to the database in the creation:
QSqlTableModel *model = new QSqlTableModel(this, logdb);
What else is there to bind?
It doesn't crash when the first database comes up - that looks fine, just when you refer to the header you created to try and save it.
Bookmarks