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
Forum Updated to NodeBB v4.3 + New Features

QML module not found error

Scheduled Pinned Locked Moved Unsolved Qt Design Studio
3 Posts 2 Posters 331 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 29 Nov 2024, 12:40 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 30 Nov 2024, 03:00 last edited by
      #2

      Issue fixed, closing thread.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        t.vanbesien
        wrote on 2 Dec 2024, 15:44 last edited by
        #3

        How did you fix it?

        1 Reply Last reply
        0

        1/3

        29 Nov 2024, 12:40

        • Login

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