To access a database with QSqlQuery or QSqlQueryModel, create and open one or more database connections. Database connections are normally identified .