This is what I have, but it is not changing color of the rectangle called circle:
ToClick.qml:
onClicked:
{
luncherList.colorRef = "blue";
}
onClicked:
{
luncherList.colorRef = "blue";
}
To copy to clipboard, switch view to plain text mode
ToChange.qml:
property alias colorRef: circle.colorUrl
Rectangle {
id: circle
property color colorUrl
onColorUrlChanged:
{
console.log("hello3");
circle.colorUrl = "blue"
}
property alias colorRef: circle.colorUrl
Rectangle {
id: circle
property color colorUrl
onColorUrlChanged:
{
console.log("hello3");
circle.colorUrl = "blue"
}
To copy to clipboard, switch view to plain text mode
Can you tell me what I am doing wrong?
Bookmarks