
Originally Posted by
anda_skoa
Where do you call the methods that log the errors?
Cheers,
_
Here after Call:
MainSystem *ms= new MainSystem(this);
ms->tableView_listSales();
MainSystem *ms= new MainSystem(this);
ms->tableView_listSales();
To copy to clipboard, switch view to plain text mode
I think , that the problem is a connection:
#define controller "QSQLITE"
bool connection::openBD()
{
return false;
}
base.setDatabaseName(m_name);
return base.open();
}
#define controller "QSQLITE"
bool connection::openBD()
{
if(!QSqlDatabase::isDriverAvailable(controller)){
return false;
}
base = QSqlDatabase::addDatabase(controller);
base.setDatabaseName(m_name);
return base.open();
}
To copy to clipboard, switch view to plain text mode
Bookmarks