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. [Solved] Mockup for C++ module
Forum Updated to NodeBB v4.3 + New Features

[Solved] Mockup for C++ module

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 2.4k 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.
  • E Offline
    E Offline
    ephe
    wrote on 28 Feb 2012, 12:01 last edited by
    #1

    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
    0
    • E Offline
      E Offline
      ephe
      wrote on 29 Feb 2012, 06:21 last edited by
      #2

      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
      0

      1/2

      28 Feb 2012, 12:01

      • Login

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