Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Design Tooling
  3. Qt Design Studio
  4. QML module not found error
Qt 6.11 is out! See what's new in the release blog

QML module not found error

Scheduled Pinned Locked Moved Unsolved Qt Design Studio
3 Posts 2 Posters 1.3k 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
    Ayush107
    wrote on last edited by
    #1
    import QtQuick.Controls
    import QtQuick.Layouts
    import QtQuick.Controls.Material
    import LinearRegression 1.0 <-------------------Error here in Qt design studio
    
    Window {
        id: window
        width: Screen.width
        height: Screen.height
        visible: true
        title: qsTr("NeuralFlow")
    
        ColumnLayout {
            id: column
            width: 200
            height: 200
            anchors.verticalCenter: parent.verticalCenter
            anchors.horizontalCenter: parent.horizontalCenter
    
    }
    

    Below are the contents of .qmlproject file :

    import qmlproject 1.0
    
    Project {
        name: "NeuralFlowProject"
        version: "1.0"
        mainFile : "Main.qml"
        // Define source directories and files
        files: [
            "Main.qml",
        ]
    
        // Optionally include Qt modules or dependencies
        QtModules: [
            "QtQuick",
            "QtQuick.Controls"
        ]
    
        QmlModules: [
            {
                name: "LinearRegression"
                versions: ["1.0"]
            }
        ]
    }
    

    Note that, LinearRegression is a c++ class registered via qmlRegisterSingletonInstance, the application overall works as expected, but i am not able to get the preview of the design in Qt Design studio.
    Is there any way to make the error go away ( and instead have placeholder content, so i can preview the design ).

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Ayush107
      wrote on last edited by
      #2

      Issue fixed, closing thread.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        t.vanbesien
        wrote on last edited by
        #3

        How did you 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