import QtQuick import QtQuick.Controls Window { id:root width: 640 height: 480 visible: true title: qsTr("Hello World") property var posx:[-1,-1,-1]; property var posy:[-1,-1,-1]; property var gb:[l1,l2,l3]; Rectangle { id:l1; width:20; height:20; radius:10; color:"red"; visible:false; onXChanged: { var temp0=Math.random(); var temp1=Math.random(); var temp2=Math.random(); var temp3=Math.random(); color=Qt.rgba(temp0,temp1,temp2,temp3); } onYChanged: { var temp0=Math.random(); var temp1=Math.random(); var temp2=Math.random(); var temp3=Math.random(); color=Qt.rgba(temp0,temp1,temp2,temp3); } } Rectangle { id:l2; width:20; height:20; radius:10; color:"red"; visible:false; onXChanged: { var temp0=Math.random(); var temp1=Math.random(); var temp2=Math.random(); var temp3=Math.random(); color=Qt.rgba(temp0,temp1,temp2,temp3); } onYChanged: { var temp0=Math.random(); var temp1=Math.random(); var temp2=Math.random(); var temp3=Math.random(); color=Qt.rgba(temp0,temp1,temp2,temp3); } } Rectangle { id:l3; width:20; height:20; radius:10; color:"red"; visible:false; onXChanged: { var temp0=Math.random(); var temp1=Math.random(); var temp2=Math.random(); var temp3=Math.random(); color=Qt.rgba(temp0,temp1,temp2,temp3); } onYChanged: { var temp0=Math.random(); var temp1=Math.random(); var temp2=Math.random(); var temp3=Math.random(); color=Qt.rgba(temp0,temp1,temp2,temp3); } } Timer { id:spawn interval:1000; repeat:true; running:false; onTriggered: { var temp=Math.floor(Math.random()*4); for(var i=0;;++i) { if(i