How to add comments to Qt qrc file? I tried // and /* */, but this gives me an error "RCC Parse error ... [unexpected text]". Sample file:
<RCC>
<qresource>
// images
<file>image1.png</file>
<file>image2.png</file>
// qml documents
<file>doc1.qml</file>
<file>doc2.qml</file>
</qresource>
</RCC>
A format of .qrc files is based on XML. Therefore you can use XML-style for comments:
Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'
An example of a comment:
<!-- declarations for <head> & <body> -->
XML spec
You can use <!-- -->
e.g.
<!-- this is my comment in qrc file -->
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With