What is the correct way of QSqlDatabase & QSqlQuery?
When you create a QSqlDatabase object with addDatabase or when you call removeDatabase, you are merely associating or disassociating a tuple (driver, hostname:port, database name, username/password) to a name (or to the default connection name if you don’t specify a connection name). The SQL driver is instantiated, but the database will only be opened when … Read more