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. Resource packager in Qt?
Qt 6.11 is out! See what's new in the release blog

Resource packager in Qt?

Scheduled Pinned Locked Moved General and Desktop
8 Posts 4 Posters 2.0k 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.
  • H Offline
    H Offline
    heatblazer
    wrote on last edited by
    #1

    Hello,
    I am interested in packing several files, consider XML, txt, PNG, OGG, etc in archive-like file, unopenable, unreadable by humans( this I achieve by XOR on the write, XOR back on the read ). However user must not be able to open/read the data package. Is this a way to achieve it in Qt? Alternate is ZLIB, however I`d rather spend meself the deployment problems.

    1 Reply Last reply
    0
    • E Offline
      E Offline
      Erick H
      wrote on last edited by
      #2

      Hi. I think this is what you need. "Qt Resource System ":http://qt-project.org/doc/qt-5/resources.html

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

        Hi,

        While Erick H points to a good suggestion I also see OGG in your file list. How much data are you intending to ship with your application ?

        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
        0
        • H Offline
          H Offline
          heatblazer
          wrote on last edited by
          #4

          Well, it depends, quite a lot actually. Many PNGs and many OGGs. Also few XML.

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

            Sounds like it goes in the hundreds of MB, right ?

            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
            0
            • H Offline
              H Offline
              heatblazer
              wrote on last edited by
              #6

              Hardly. Ive posted a similar deployment thread about the DLLs I need to ship with my application. The VLC is a good example, but I am quite a newbie in QT so I can only guess, that they`ve packed all DLLs in a huge library file or they are actually using the enterprise edition...

              1 Reply Last reply
              0
              • sierdzioS Offline
                sierdzioS Offline
                sierdzio
                Moderators
                wrote on last edited by
                #7

                I guess SGaist is cautious, because compiling Qt Resource Files can consume vast amounts of RAM, unless you split the data into several different resources. Just be careful and watch RAM usage during compilation (this does not affect runtime RAM use!). QRC system is definitely convenient, as it is built into Qt and thus extremely easy to include in Qt applications.

                (Z(:^

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

                  That's one point but not the one I was aiming at. While I agree with sierdzio about the difference of RAM usage between compilation and runtime, creating a big application executable also means that just starting it will eat the RAM at runtime and increase its load time.

                  A good example of software with numerous assets are games, they generally keep the application size down and load what is needed on demand.

                  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
                  0

                  • Login

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