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. Compile Qt Resources into a dll?
Forum Updated to NodeBB v4.3 + New Features

Compile Qt Resources into a dll?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 3.4k 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.
  • N Offline
    N Offline
    Nosf
    wrote on 4 Jul 2012, 15:25 last edited by
    #1

    Just wondering is it possible to build qt resources into a separate dll than make it be part of the application executable itself.

    Idea is to have a dll that the main application can link against to get all its images or translations or anything that it needs and not have it within the main app executable itself.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tucnak
      wrote on 4 Jul 2012, 20:09 last edited by
      #2

      Hi, ~Nosf!

      I haven't heard about it, yet. But why do you need it? It's very strange to use resources from external dll. And it can be unsafe, so another applications can change your resources.

      1 Reply Last reply
      0
      • N Offline
        N Offline
        Nosf
        wrote on 4 Jul 2012, 20:38 last edited by
        #3

        Hey tucnak,

        Reason am looking for this or something similar is, say as our application resources grow larger and larger the application executable gets bigger as well.

        Now if your having local content used via webkit you could put the files into the application folder and read them from there but they might also be easy for the end user to edit or tamper with. Hence was looking for alternatives pretty much.

        I did just see "Dynamic Resource Loading":http://doc.qt.nokia.com/4.7-snapshot/qresource.html#dynamic-resource-loading which might be what i'm looking for in this case. Got to give it a try and see the results

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on 4 Jul 2012, 22:55 last edited by
          #4

          tucnak: Resources are read only, there is no need to worry about them getting changed:-)

          Qt Creator plugins tend to each have their own set of resources. Since each plugin is essentially a library that seems to work fine:-)

          1 Reply Last reply
          0

          1/4

          4 Jul 2012, 15:25

          • Login

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