[Interest] Black magic or voodoo?

Pierre-Yves Siret py.siret at gmail.com
Wed Nov 15 12:42:39 CET 2017


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>:

> 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
> 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/ed8df25b/attachment.html>


More information about the Interest mailing list