Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [Solved] Mockup for C++ module

    QML and Qt Quick
    1
    2
    2220
    Loading More Posts
    • 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.
    • E
      ephe last edited by

      I've created a module in C++.
      Now I want to give the QML files to the designers who do not have access to the C++ modules.
      How can I create a mockup so that
      @import MyModule 1.0@
      works?
      Now I'm getting the error:
      @
      file:///E:/MyComponent.qml:3:1: module "MyModule" is not installed
      import MyModule 1.0
      ^
      @

      1 Reply Last reply Reply Quote 0
      • E
        ephe last edited by

        I could fix that problem by creating a "MyModule" folder in the folder where the QML files are.
        In that folder, I created a qmldir file which just contains the line

        Slider 1.0 Slider.qml

        and I also created the Slider.qml file.
        Then the import was fine.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post