Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [Solved] How to not packaging files that are already in resource file again?
QtWS25 Last Chance

[Solved] How to not packaging files that are already in resource file again?

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    owenzhao
    wrote on last edited by
    #1

    I am not using resource file at first. Then I decide to use a resource file.

    After adding all my pictures and sound files to the resouce file(resouces.qrc). I find that my app size doubled. Also, I find that when I deploy my app, the pictures and sound files are also where they were as before.

    So I guess the build system builds the qrc file, as well as including my pictures and sound files. Which means, I have duplicated files in my app install file.

    How can I keep them from not packaging into the app install file? As I have already had them in my resource file.

    Thank you.

    1 Reply Last reply
    0
    • O Offline
      O Offline
      owenzhao
      wrote on last edited by
      #2

      In .pro file, comment the lines of ship folder
      @# Add more folders to ship with the application, here
      #folder_01.source = qml/youfolder
      #folder_01.target = qml
      #DEPLOYMENTFOLDERS = folder_01@

      files and folders are packaging to the installer file implicitly.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved