It turns out the code above was missing a second setTable() to re-fetch the sql table field information.
Qt Code:
model->setTable("test"); model->select(); return app.exec();To copy to clipboard, switch view to plain text mode
It turns out the code above was missing a second setTable() to re-fetch the sql table field information.
Qt Code:
model->setTable("test"); model->select(); return app.exec();To copy to clipboard, switch view to plain text mode
Bookmarks