Hi Christian,

I'm not a QtQuick expert, but can't you just use the QML2_IMPORT_PATH
> variable?
>
> AutotestRunner {
>     environment: base.concat("QML2_IMPORT_PATH=qrc:/qml")
> }
>

I tried to use environment exactly how you proposed but somehow the value
of QML2_IMPORT_PATH is processed and qrc:/qml is not added to the list.
Interesting is that if I set environment to

environment: base.concat("QML2_IMPORT_PATH=qrc:/qml:/home")

this is the resulting list of import paths:

  View: QQuickView, import paths:
    '/home/<user>/workspace/<project>/debug/tst-components-default.f0fbc580'
    'qrc:/qt-project.org/imports'
    '/home'
    '/home/<user>/Qt/5.9.5/gcc_64/qml'

qrc:/qml has been removed.

-- 
Federico Frenguelli
_______________________________________________
Qbs mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qbs

Reply via email to