Load a qml component from another qml file dynamically and access that component's qml type properties
问题 I looked into other questions regarding this topic in StackOverflow but it did not help me. I am new to QML/Javascript and I went through QML docs regarding this question but it did not help. Below is one file 'SmallWindow.qml' Item { ... property var statusColour: calStatusColour(() property Component devViewNameComponent: devNameComp function calStatusColour() { var color = "black" //Here, colour will be changed based on some status. } Row { Component{ id:devNameComp Rectangle { id