Most interesting would a stack trace from where QSqlDatabasePrivate::removeDatabase gets called, as the database singleton should be the only one with a reference to the connection and it should deconstruct before the application object as it is its child.
Most interesting would a stack trace from where QSqlDatabasePri vate::removeDat abase gets called, as the database singleton should be the only one with a reference to the connection and it should deconstruct before the application object as it is its child.