Well, my question is very simple, I want to use the ui.qml files but I cant use Component and Loader insite these files, so for that reason I cant use StackView because for config the StackView I need use Component and loaders, so my question is, how I assign a Component and Loaders in main.qml of a StackView inside of WinForm.ui.qml? I already tried this in MainForm.ui.qml file:
property alias stackV: stackV
...
Item{
id: stackV
anchors.top: barraUP.bottom; anchors.bottom: barraDown.top
anchors.horizontalCenter: parent.horizontalCenter
width: CalcSize.espTrbWid
}
...
In main.qml file:
MainForm {
anchors.fill: parent
stackV{
Component{
id: comp1
Loader {
id:loader1
source: "VentPrinc.qml"
}
}
}
}
But I get this error
QQmlApplicationEngine failed to load component qrc:/main.qml:30 Cannot assign a value directly to a grouped property
I really appreciate any help