Hello!
I try to establish two database connections, one with PostgreSQL and second with SQLite. I start with code:
Qt Code:
  1. QSqlDatabase mainDatabase = QSqlDatabase::addDatabase("QPSQL", "MainDatabase");
  2. QSqlDatabase mapDatabase = QSqlDatabase::addDatabase("QSQLITE", "MapDatabase");
To copy to clipboard, switch view to plain text mode 
then I setup and test connection with PostgreSQL – everything its fine so far. When I try to open SQLite databse with code:
Qt Code:
  1. mapDatabase.setDatabaseName("db_name");
  2. if (!this->mapTilesDatabase.open())
  3. {
  4. // error handling
  5. }
To copy to clipboard, switch view to plain text mode 
I recieve error: Driver not loaded.
Is it possible to use two different database divers simultaneously at all?