Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QSQLITE connecting to an opened database
mititelud last edited by
i have a Database class that creates and opens a database.
how can i acces that database from an other class?
i tried QSqlDatabase db.setHostName(path_to_database/mydb.db) and QSqlDatabase db.setDatabaseName(path_to_database/mydb.db) with no success.
andreyc last edited by
What errors do you see when you try to open sqlite from another QSqlDatabase ?