I have a non-default SQLite database connection created in a class. I .setdatabasename(:memory and then create a table.
How do I access the SAME database from another class ?

I tried sending the QSqlDatabase through a signal but the database became "blank" (no tables besides master).
I tried QSqlDatabase sqlite = QSqlDatabase::database("already-established"); (within the new class) but with the same result.
Is what I am trying to do logically wrong?


psls dont tell me to use default connection.
Thanks