[Interest] Unable to run QtQuick TestCase from qrc resources

Igor Mironchik igor.mironchik at gmail.com
Wed Apr 25 14:41:58 CEST 2018


Hi,


On 25.04.2018 15:19, Igor Mironchik wrote:
>
> Hi,
>
> Try qrc:/ as prefix...
>

Will not work too... Does qrc:/ supported by Qt Quick Test at all? Seems 
that no...

>
> On 25.04.2018 13:53, Christoph Keller wrote:
>>
>> Hello,
>>
>> is there a way to run the QtQuick TestCases from qrc resources? 
>> Running them from the file system works as as expected but setting 
>> the source path to ":/" leads to the TestCase being loaded but it 
>> cannot find other imports (in the same directory).
>>
>> I've attached an example which always outputs:
>>
>> file::/tst_TestItem.qml:4:1: TestItem is not a type
>>
>> TestItem {
>>
>> ^
>>
>> Christoph
>>
>>
>>
>> _______________________________________________
>> 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/20180425/404454f2/attachment.html>


More information about the Interest mailing list