On 19 Feb 2016, at 18:07, ekke 
<e...@ekkes-corner.org<mailto:e...@ekkes-corner.org>> wrote:

Hi,

thanks for answer.

Am 19.02.16 um 17:50 schrieb Nurmi J-P:

Hi,



On 19 Feb 2016, at 17:05, ekke 
<e...@ekkes-corner.org><mailto:e...@ekkes-corner.org> wrote:

2.  qml.qrc and QML
    looked at some samples and also created new Qt Quick applications and 
noticed:
    the main.qml was automatically generated from new project wizard and ONLY 
inside the qml.qrc file
    some other examples - per ex. gallery from Qt 5.6 qt.labs.controls:
    the gallery.qml was visible inside the gallery.qrc
    but below the Resources folder there's also a folder named 'QML' containing 
the same gallery.qml
    how will this be done to show the same qml file inside .qrc and also inside 
QML folder ?
    or is it ok if all qml files are only insie .qrc ?
    what's the recommended way ?


Personally, I like the flat QML tree much more than the hierarchical resources 
tree, so I tend to list .qml files in the OTHER_FILES variable in the .pro 
file. This is also done in the Gallery example.


that's where I have seen it
But why is only the gallery.qml listed under OTHER_FILES and not all the qml 
files ?

This is the down-side of maintaining two lists. Somebody forgot to add the 
pages. In the first draft of the gallery there weren't others than 
gallery.qml... :)

I'm also wondering why the qrc hierarchy wasn't displayed as a tree ;-)

What do you mean? When I expand the QML files I can see the list right away. 
With resources, you have to expand the resource file and then the prefix to 
eventually get to the list. The reason is simply that there can be multiple 
.qrc files and each can contain multiple prefixes.

--
J-P Nurmi
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to