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. Moving files to allow access to everyone
Qt 6.11 is out! See what's new in the release blog

Moving files to allow access to everyone

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 523 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.
  • P Offline
    P Offline
    Paulus_rin
    wrote on last edited by
    #1

    We have a group project and with our software we create files, like grocery lists and recipes. The problem is that these files are not equal for everybody, but should be. Those files are in a "build" folder, which is individual for everybody. The folder before is the same for everybody. How can I direct them into that folder?
    Didnt find a function in QDir(rename didnt work) and to copy those files didnt work as well, because after building the program the json files always are generated in the build folder. Unsurprisingly

    These are the json files in the build directory

    fol.PNG

    This is the directory in which the files would be accessable for everybody

    folder2.PNG

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Paulus_rin said in Moving files to allow access to everyone:

      This is the directory in which the files would be accessable for everybody

      Im not sure what you mean here as even we put them in docs or similar then
      its still on the local pc.

      Cant, you just put them on a server then via a shared folder ?
      If you really want all members to access the SAME files and not copies of the same.
      One of you could share a folder and put that files there and rest uses that.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Paulus_rin
        wrote on last edited by
        #3

        It is a project managed via github and the files in the second screenshot are accessable for everybody, effectively a cloud

        mrjjM 1 Reply Last reply
        0
        • P Paulus_rin

          It is a project managed via github and the files in the second screenshot are accessable for everybody, effectively a cloud

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Paulus_rin
          So you are not in same location?

          Well you could use something like dropbox and store them in the folder/data there
          and all would have access.

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Paulus_rin
            wrote on last edited by
            #5

            No, we are not. Yeah, but i thought that something linke QDir could work

            mrjjM 1 Reply Last reply
            0
            • P Paulus_rin

              No, we are not. Yeah, but i thought that something linke QDir could work

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Paulus_rin
              Hi
              QDir is just a helper class to work with files and folders.
              But it cant make a local folder public to others or things like that.

              1 Reply Last reply
              1

              • Login

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