How can I programmatically find out what resources Qt is counting on?

I would like to be able to list the paths to Qt resources, for example:

: /new/prefix/blabla.jpg

+1


a source to share


1 answer


Qt can use resources transparently. This means that you can use any QDir filesystem to get the contents of any path in the resources - starting at :/

you get the contents of the topmost resources. You can then navigate through the folders in the resources (or check the Qt documentation if there is something already there).



See also the detailed description QDir()

: it explicitly indicates that it can be used with resources.

+9


a source







All Articles