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. Where do we put files that we need deployed with our app?
Forum Updated to NodeBB v4.3 + New Features

Where do we put files that we need deployed with our app?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 516 Views 3 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.
  • StokestackS Offline
    StokestackS Offline
    Stokestack
    wrote on last edited by Stokestack
    #1

    Hi all.

    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!

    1 Reply Last reply
    0
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by
      #2

      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.

      If you meet the AI on the road, kill it.

      1 Reply Last reply
      2
      • StokestackS Offline
        StokestackS Offline
        Stokestack
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          Take a look at the iOS platform notes, especially the Application Assets part. There's an equivalent in the Android platform notes.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2

          • Login

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