How can I organize files under the qml.qrc folder in Qt Creator? -


if have bunch of resources (images, fonts, etc.) in different folders under qml.qrc file, there way organize within qt creator?

for example, if have following in qml.qrc file:

<rcc>     <qresource prefix="/">         <file>main.qml</file>         <file>pages/mainpage.qml</file>         <file>pages/newcontactpage.qml</file>         <file>images/plus.png</file>         <file>images/minus.png</file>         <file>images/exit.png</file>     </qresource> </rcc> 

it show long list in qt creator, this:

resources     qml.qrc         /           main.qml           pages/mainpage.qml           pages/newcontactpage.qml           images/plus.png           images/minus.png           images/exit.png 

since list can long on duration of project, nice if these organized better , split folders in directory. ideas?

from qt documentation: the qt resource system

by default, resources accessible in application under same file name have in source tree, :/ prefix, or url qrc scheme.

it possible specify path prefix files in .qrc file using qresource tag's prefix attribute:

this example show how it:

<rcc>    <qresource prefix="/pages">       <file >pages/mainpage.qml</file>    </qresource>    <qresource prefix="/images">       <file >images/plus.png</file>    </qresource> </rcc> 

Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -