QT Creator copies SQLite as empty database
Clash Royale CLAN TAG #URR8PPP QT Creator copies SQLite as empty database I have a sqlite file in the folder of my QT creator app. I even did Projects (right click) -> add existing files, and added it to my project. The file gets copied to the build directory. However, it contains no tables or data. I need the data in my database file to persist during the copy. Is there any way to ensure this? do you mean you want to keep the data but change the schema? – Amfasis 2 hours ago 1 Answer 1 What happens is that the database is not being copied, since attaching it to the .pro does not imply that it will be moved to the build folder. And then why is there .db in the build folder? sqlite if it does not find the .db it will create it, so you get the empty fil...