Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Where do we put files that we need deployed with our app?
Stokestack last edited by Stokestack
I need to distribute a couple of SQLite databases with my cross-platform application. The qrc file does not appear to be an appropriate place for this kind of thing. Although QStandardPaths gives us a convenient way to find directories at runtime, I need to get the files into one of those places at installation time. I've done some searching on this issue, but haven't seen a good answer.
Also, I realize that in this case I could simply include the necessary SQL to create the databases on the fly, but I may need to include other types of files that are likewise not appropriate for the qrc method. Thanks!
Kent-Dorfman last edited by
Depends how you are distributing your app, and the type of files being shipped with it.
I think it's quite an arbitrary decision how you want your layout to be. If you are only sending a binary installation then you'd decide that as part of creating your installer.
Not sure that there is a right answer to this question.
Stokestack last edited by
Thanks. This will primarily be a mobile application, so of course I don't get to write my own installer for those. I've included a subdirectory and file in my Qt project, so I guess I'll have to examine the resulting mobile applications and see where they've been deposited.