[Interest] Unable to run QtQuick TestCase from qrc resources

Christoph Keller theoriginalgri at gmail.com
Wed Apr 25 12:53:25 CEST 2018


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180425/1daef377/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: importtest.zip
Type: application/zip
Size: 3218 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180425/1daef377/attachment.zip>


More information about the Interest mailing list