Jan-12-2023, 02:47 PM
QSqlDatabase.addDatabase(type, connection name)
you can give your connection a name, this is an option.
If connectionName is not specified, the new connection becomes the default connection
QSqlDatabase.setDatabaseName(filepath)
you can give your connection a name, this is an option.
If connectionName is not specified, the new connection becomes the default connection
QSqlDatabase.setDatabaseName(filepath)