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. QML assert_imports created by QT Design Studio is not installed in QT Creator
Forum Updated to NodeBB v4.3 + New Features

QML assert_imports created by QT Design Studio is not installed in QT Creator

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 380 Views
  • 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.
  • R Offline
    R Offline
    roditu
    wrote on last edited by roditu
    #1

    I created a regular QML project in QT Creator, but with an option that says the project can be used/opened in QT Design Studio.

    That created a default project with "asset_imports" folder that contained "asset_imports.txt".

    I added an asset in QT Design Studio through assets section.

    That created a folder called "Quick3DAssets", and a folder in that called "Bitcoin", which is the asset i added. It's an .obj file that represents a 3D Model.

    The folder Bitcoin has files like "Bitcoin.qml" and qmldir also folder like meshes and source scene.

    Everything works perfectly fine in QT Design Studio, but when trying to run an application in QT Creator I get: qrc:/qt/qml/content/Screen01.ui.qml:13:1: module "Quick3DAssets.Bitcoin" is not installed

    on line: import Quick3DAssets.Bitcoin in Screen01.ui.qml.

    Also I was adding a bunch of .png files, that also cannot be found, but that doesn't result in application not running. It doesn't see an entire asset_imports, not just Quick3DAssets.

    I've read that it might be related to engine.addImportPath in .main.cpp, I tried adding some combinations of different paths, but that doesn't help.

    I created a minimal reproducible example by creating a completely new project and without doing any change to the code I just added the .obj files in QT Design Studio and dragged it onto the scene, so that .qml file would change. I still get that same error.

    Literally a new project, looks like some sort of problem that needs fixing in CMakeLists or in main.cpp.

    There are a lot of files in the project, so if You want me to include some code just ask, but I just created a new project and all of the code is QT's generated.

    I'm using QT 6.7.0, Qt design studio 4.5.0 and QT Creator 13.0.1, with cmake, not qmake

    1 Reply Last reply
    0
    • C Offline
      C Offline
      cora
      wrote on last edited by
      #2

      I met the same problem, I'm using QT 6.7.2, Qt design studio 4.5.1 and Qt creator 13.0.2, with cmake.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cora
        wrote on last edited by
        #3

        I solved it in other way. I create a QML project by qt design studio rather than qt creator frist. Then, I added some 3D assets in the project by qds. After that, I used qt creator opened this project and those 3D assets were represented successfully. By the way, if you want to create a QML project by qt design studio, you need click File -> Export Project -> Enable Automate Generation after build a qds project, and then you will find a qml project organized by cmake file.

        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