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. Module not installed error - qmlRegisterSingletonType
Forum Updated to NodeBB v4.3 + New Features

Module not installed error - qmlRegisterSingletonType

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 3 Posters 570 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.
  • P Offline
    P Offline
    parvathypb
    wrote on last edited by aha_1980
    #1

    Hi,

    Our Qt application was initially created in qt 5.6 and Ubuntu 16.04 environment. But recently we had to upgrade to ubuntu 18.04 and qt 5.11. The same software which was working before has some issues now.

    The issue now is :
    In main.cpp,
    qmlRegisterSingletonType(QUrl("qrc:/qml/Components/Style.qml"),
    "com.xxx.yyy.dev.devStyle", 1, 0, "devStyle");

    Now in main.qml, i am using
    import com.xxx.yyy.dev.devStyle 1.0

    But it is throwing error qrc:/qml/MainNew.qml:4:1: module
    "com.xxx.yyy.dev.devStyle" is not installed

    Please provide a solution to how to solve this issue.

    Pablo J. RoginaP 1 Reply Last reply
    0
    • P parvathypb

      Hi,

      Our Qt application was initially created in qt 5.6 and Ubuntu 16.04 environment. But recently we had to upgrade to ubuntu 18.04 and qt 5.11. The same software which was working before has some issues now.

      The issue now is :
      In main.cpp,
      qmlRegisterSingletonType(QUrl("qrc:/qml/Components/Style.qml"),
      "com.xxx.yyy.dev.devStyle", 1, 0, "devStyle");

      Now in main.qml, i am using
      import com.xxx.yyy.dev.devStyle 1.0

      But it is throwing error qrc:/qml/MainNew.qml:4:1: module
      "com.xxx.yyy.dev.devStyle" is not installed

      Please provide a solution to how to solve this issue.

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @parvathypb please don't double post...

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      aha_1980A 1 Reply Last reply
      1
      • Pablo J. RoginaP Pablo J. Rogina

        @parvathypb please don't double post...

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Pablo-J-Rogina Indeed. Closing this one.

        Qt has to stay free or it will die.

        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