I have made Qt C++ project, it’s works perfectly fine, but when I create standalone exe via windeployqt.exe it won’t copy my database, instead of this during first initialization it just creates empy db with no tables.
QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE", "Main");
db.setDatabaseName(QCoreApplication::applicationDirPath() + "/library.db");
db.open();
This is how I open db in project.
Any help is appreciated.
3