[Interest] Qt Creator - questions HowTo copy/past src/res

Nurmi J-P jpnurmi at theqtcompany.com
Fri Feb 19 17:50:33 CET 2016


Hi,

> On 19 Feb 2016, at 17:05, ekke <ekke at 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.

--
J-P Nurmi


More information about the Interest mailing list