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. Copy File to resource folder in qt
Qt 6.11 is out! See what's new in the release blog

Copy File to resource folder in qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 4 Posters 1.4k Views 2 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.
  • R Offline
    R Offline
    R4leY
    wrote on last edited by
    #1

    Hello , i have a question , Can i copy file from disk to resource folder using code ??

    QFile::copy()
    

    not work for me.

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

      Hi,

      If you mean Qt's resource system, then no, it's embedded in your application. It's read-only.

      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
      • R Offline
        R Offline
        R4leY
        wrote on last edited by
        #3

        Is another way to storage files in application EXE file ?

        jsulmJ 1 Reply Last reply
        0
        • R R4leY

          Is another way to storage files in application EXE file ?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @R4leY Why do you want to change your exe file at runtime?!
          This is very unusual and will trigger anti-virus software, which will block your software and put it in quarantine.
          If you want to store some files then why not do it as it is supposed to be done: store them in the file system?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2
          • R Offline
            R Offline
            R4leY
            wrote on last edited by
            #5

            i just want make a installator maker in qt . I stoped on "How to storage files in installator EXE fille?". That's why i get idea about resource folder in qt. Have you any idea how can i do it ? I don't have ideas.

            Pablo J. RoginaP 1 Reply Last reply
            0
            • R R4leY

              i just want make a installator maker in qt . I stoped on "How to storage files in installator EXE fille?". That's why i get idea about resource folder in qt. Have you any idea how can i do it ? I don't have ideas.

              Pablo J. RoginaP Offline
              Pablo J. RoginaP Offline
              Pablo J. Rogina
              wrote on last edited by
              #6

              @R4leY said in Copy File to resource folder in qt:

              i just want make a installator maker in qt

              And what about taking a look at Qt Installer Framework?

              Upvote the answer(s) that helped you solve the issue
              Use "Topic Tools" button to mark your post as Solved
              Add screenshots via postimage.org
              Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

              1 Reply Last reply
              1
              • R Offline
                R Offline
                R4leY
                wrote on last edited by
                #7

                Ok , i didn't know about this framework. Thanks ! Problem Solved :)

                Pablo J. RoginaP 1 Reply Last reply
                0
                • R R4leY

                  Ok , i didn't know about this framework. Thanks ! Problem Solved :)

                  Pablo J. RoginaP Offline
                  Pablo J. RoginaP Offline
                  Pablo J. Rogina
                  wrote on last edited by
                  #8

                  @R4leY Ok, so

                  Upvote the answer(s) that helped you to solve the issue
                  Use the "Topic Tools" button to mark your post as Solved

                  Thanks.

                  Upvote the answer(s) that helped you solve the issue
                  Use "Topic Tools" button to mark your post as Solved
                  Add screenshots via postimage.org
                  Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                  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