Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Unable to import local custom modules to qt 5.0.2 application. No such directory Error import "../MyComponents" 1.0
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 611 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LakshmiSaripella
    wrote on last edited by
    #1

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

    TestApp
    |-- 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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved