Once the connection is initialized, we must call QSqlDatabase.open() to open the database and give us access to the data. If this call fails it will return false; error information can be obtained from QSqlDatabase.lastError().
Подключение точно должно свалиться если сделаешь запрос к таблицам.