Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to bundle a folder with a Qt application?

How to bundle a folder with a Qt application?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 765 Views 1 Watching
  • 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.
  • M Offline
    M Offline
    Muhammad
    wrote on last edited by
    #1

    I have a Qt application that accesses a folder in my E:/ drive through QDir class and I want to bundle that folder with the executable of the application like I do with resource files. But The folder have sub-folders so I don't want to add all the files in the folder and it's sub-folders to the resource file.

    Is there something I can write in the .pro file allows me to achieve this.

    • Note: The application is for android, so may be adding it to assets will help, but I don't know how to do it even.

    Thanks.

    I don't have endpoint, I just have Checkpoints.

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      I don't think anything exist like this. You can generate myfiles.dat with contents of folder and all sub-folders by writing another program itself. You can use QDir to read the directory. You can include myfiles.dat as resource file. You need to read the contents of myfiles.data using QFile class.

      All this is making it as work-around.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      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