Ah wait, so this component is loaded into a Loader! That’s probably an overkill (it would work without the loader just fine). In order to get to the belly of a Loader, you need to acces it through item property. Here’s a snippet:
Loader {
id: loader
source: "whatever.qml"
}
// somewhere else in code (JS. C++ would work, too):
loader.item.color = "#12ff87";
Hope I finally understand your code now :P
↧