My confusion codes from something like this.
Qt Code:
db.setDatabaseName("downloads.sqlite"); if (!db.open()) { qDebug() << "Error opening DB."; } db2.setDatabaseName("history.sqlite"); if (!db2.open()) { qDebug() << "Error opening DB."; } qtm->setTable("moz_downloads"); qtm->select();To copy to clipboard, switch view to plain text mode
In this case which db is the QSqlTableModel qtm model going to associate the "moz_downloads" table with?
If the table-model was destroyed then it could not print out the records in my button routine could it? But it does.
Bookmarks