AA.qml
Item
{
id: drawLinesOnC
property string lineColour
property int lineDrawingSourceType
property variant startEndPointArray
}
Item
{
id: drawLinesOnC
property string lineColour
property int lineDrawingSourceType
property variant startEndPointArray
}
To copy to clipboard, switch view to plain text mode
main.qml
Loader
{
id: drawLineLoaderA
source: "AA.qml"
}
Loader
{
id: drawLineLoaderA
source: "AA.qml"
}
To copy to clipboard, switch view to plain text mode
-
How to access the public properties of AA.qml page loaded through Loader drawLineLoaderA?
Added after 19 minutes:
Found the solution :
drawLineLoaderA.source = "DrawLineLoader.qml"
drawLineLoaderA.item.lineColour = "black"
drawLineLoaderA.item.lineDrawingSourceType = 2
drawLineLoaderA.source = "DrawLineLoader.qml"
drawLineLoaderA.item.lineColour = "black"
drawLineLoaderA.item.lineDrawingSourceType = 2
To copy to clipboard, switch view to plain text mode
Bookmarks