Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Making file/folder to be part of the build folder in QT



  • i know i can do this by using .qrc file ,but some type of files i cannot add to qrc file (for example database file).so suppose if i want to add these kinds of files (or folder containing all these files) on which my application is depending,how can i do this by making changes in .pro file?.i have used below code for linux
    unix {
    addFiles.files += databasefile.db
    addFiles.path = .
    DEPLOYMENT += addFiles
    INSTALLS += addFiles
    }
    please let me know how i can achive this..


  • Lifetime Qt Champion

    Hi,

    What would be the problem with having a minimal database file in your resources ? If it's a size question (within limits) you can also use an External Binary Resource.


Log in to reply