QrcParser Class
class Utils::QrcParserThe QrcParser class parses one or more QRC files and keeps their content cached. More...
Header: | #include <QrcParser> |
Public Types
Detailed Description
A Qt resource collection (QRC) contains files read from the file system but organized in a possibly different way. To easily describe that with a simple structure, we use a map from QRC paths to the paths in the filesystem. By using a map, we can easily find all QRC paths that start with a given prefix, and thus loop on a QRC directory.
QRC files also support languages, which are mapped to a prefix of the QRC path. For example, the French /image/bla.png (lang=fr) will have the path fr/image/bla.png
. The empty language represents the default resource. Languages are looked up using the locale uiLanguages() property
For a single QRC, a given path maps to a single file, but when one has multiple (platform-specific and mutually exclusive) QRC files, multiple files match, so QStringList are used.
Especially, the collect*
functions are thought of as low level interface.
Member Type Documentation
QrcParser::ConstPtr
Represents constant pointers.
QrcParser::Ptr
Represents pointers.