title: Basic Javascript/math in QML... why doesn't it work?
body: <p>I'm pretty new to QML. According to the QML documentation at <a href="http://doc.qt.nokia.com/4.7-snapshot/qdeclarativescope.html" rel="nofollow">http://doc.qt.nokia.com/4.7-snapshot/qdeclarativescope.html</a>, the Text object should show 15, but instead it only outputs 5. Can anyone help me out?</p>
  
  <pre><code>Text {
      id: counter
      x: 300;
      y: 300;
      property int a: 5;
      function randNumber(a){
          var a = a+10;
          return a;
      }
      text: a;
  }
  </code></pre>