void QDbfReader::sql_execute(QString query){ QSqlDatabase dbs = QSqlDatabase::addDatabase("QIBASE", "con"); dbs.setDatabaseName("c:\\database.fdb"); dbs.setUserName("sysdba"); dbs.setPassword("masterkey"); dbs.open(); dbs.transaction(); model->setQuery(query, dbs); dbs.commit(); dbs.close();}
//dbs.transaction();
//dbs.commit();
query = "select * from basetable";
QSqlDatabase dbs = QSqlDatabase::addDatabase("QIBASE", "con");