QML module not found error
Unsolved
Qt Design Studio
-
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 ). -
How did you fix it?