Qt World Summit: Register Today!

Unable to import local custom modules to qt 5.0.2 application. No such directory Error import "../MyComponents" 1.0

  • I've a qt5.0.2 application with below given folder structure

    |-- debug
    |-- qml
    |-- MyComponents
    |-- MyCheckBox
    |-- MyButton
    |-- qmldir
    |-- TestApp
    | -- main.qml
    | -- qtquick2applicationviewer
    | -- release

    I've " import "../MyComponents" 1.0 " in main.qml file. While executing the above, I get to receive "No Such Directory Error" and I'm unable to proceed further. How to import local custom modules (having multiple .qml files in it with a qmldir file) to my project?

Log in to reply