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. Application failed to find basic Qt Quick modules using 6.5

Application failed to find basic Qt Quick modules using 6.5

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 245 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.
  • A Offline
    A Offline
    arun-holoplot
    wrote on last edited by
    #1

    As of now we are using Qt 6.3 (conan) to build our application .

    I am trying to build our application with Qt6.5 version(conan). Compilation was fine and while running the app I see that QML modules were not found error

    QQmlApplicationEngine failed to load component
    qrc:/qml/main.qml:7:1: module "QtQuick.Window" is not installed
    qrc:/qml/main.qml:5:1: module "QtQuick.Layouts" is not installed
    ...
    

    When I print out the QML import directories I see this.

    "qrc:/imports"
    "qrc:/qml"
    "C:/Users/arun.pk/Workspace/xApp/build65/app/Release"
    "qrc:/qt-project.org/imports"
    "C:/Users/arun.pk/Workspace/xApp/build65/app/Release/res/archdatadir/qml"
    

    I can clearly see that the last entry is wrong, which should be pointing to the C:/.conan/3e66eddc/1/res/archdatadir/qml
    It was working fine with Qt6.3 from conan until now.

    ...and if I add the path explicitly to QML engine, I can launch the app 🤷‍♂️
    qmlEngine.addImportPath("C:/.conan/3e66eddc/1/res/archdatadir/qml");

    On mac I had no issues and was able to compile and launch app.
    has anyone experienced this issue or any hint on how to fix it?

    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