[Interest] Black magic or voodoo?

Nuno Santos nunosantos at imaginando.pt
Wed Nov 15 12:46:36 CET 2017


Pierre,

You have just saved my day!!!! :)

Thanks so much for your reply.

It’s working now. 

A new project has always the qml file in the root dir. On my apps structure, qml is always inside qml dir and the prefix is :/qml

Thanks once again!

Best regards,

Nuno

> On 15 Nov 2017, at 11:42, Pierre-Yves Siret <py.siret at gmail.com> wrote:
> 
> Hi,
> I guess you are using QRC then and you are including one via your .pri file.
> 
> Did you check that the prefix + base path of your existing files are the same that your qml file in the qrc of your test app?
> 
> Regards,
> Pierre-Yves
> 
> 2017-11-15 12:37 GMT+01:00 Nuno Santos <nunosantos at imaginando.pt <mailto:nunosantos at imaginando.pt>>:
> Hi,
> 
> I’m suffering from a stupid problem which I can’t understand the reason of it.
> 
> I have been using in all of my projects a shared architecture. There is a common tree defined as a .pri that I include in all apps using include(../shared/shared.pri). That shared tree has qml resources that I’m able to use in all my apps by simple declaring their name in the qml. For instance, if I have a XPTO.qml in the resources, I’m able to declared saying XPTO { }
> 
> Yesterday I created a new test app to make an isolated test to a shared qml component and on this new app, but it doesn’t recognise that shared component. Actually, it doesn’t recognise ANY shared component.
> 
> The most awkward thing is that I have another test app that include the very same .pri, uses the very same Qt kit and has the same .pro structure and it is able to recognise the component bundled on the shared tree.
> 
> How can this be? I’m getting crazy!
> 
> Any ideas?
> 
> Thx!
> 
> Regards,
> 
> Nuno
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org <mailto:Interest at qt-project.org>
> http://lists.qt-project.org/mailman/listinfo/interest <http://lists.qt-project.org/mailman/listinfo/interest>
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20171115/42420198/attachment.html>


More information about the Interest mailing list