title: Why can't I change an objects attribute in QML?
body: <p>I made 2 different rectangels in QML. The fisrts one's color is red and the other one is blue. Then I wanted to change the first one's color to white. QT builds and runs the code perfectly but the color doesn't change. How can I fix the problem?
  Edit: I already did clean and rebuild</p>
  
  <pre><code>Rectangle{
          id: rect1
          x: 10
          y: 10
          width: 50
          height: 50
          color: "red"
  }
  Rectangle{
          id: rect2
          x: 90
          y: 10
          width: 50
          height: 50
          color: "blue"
  }
  </code></pre>
  
  <p>to</p>
  
  <pre><code>Rectangle{
          id: rect1
          x: 10
          y: 10
          width: 50
          height: 50
          color: "white"
  }
  Rectangle{
          id: rect2
          x: 90
          y: 10
          width: 50
          height: 50
          color: "blue"
  }
  </code></pre>