Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

[SOLVED] Referencing neighbouring QML types from QML file



  • With reference to the bug listed here: https://bugreports.qt-project.org/browse/QTBUG-26417

    I downloaded the sample project resourceBug.zip and fixed it as instructed in the first comment ("I think the example should be changed to specify the URL 'qrc:/qml/main.qml', which will work correctly"). However I am still getting the same error: MyType is not a type.

    I uploaded resourceBugFixed.zip here: http://www.qfpost.com/file/d?g=DAjKRNjbx

    Can someone please help me get rid of the error. I am running in the exact same issue in my own app. Oddly, the original poster says applying the fix corrects things, which it doesn't for me. Running Qt 5.1.0 with msvc2010 and Qt Creator 2.7.2 on a win 8 pro 64bit machine.



  • I'd really appreciate any guru's look into this. Its a quick 4kB project. Would be much appreciated. :)



  • As per my comment on the bug page. My mistake. Simply missing an initial '/'.


Log in to reply