title: Display time automatically updating every minute
body: <p>I have an QML application in which I'm trying crate a simple clock that would show current time - similar as those in every operating system. </p>
  
  <p>The time is supposed to be presented to the user as a text in format <code>hh:mm</code>, so <em>i.e.</em> 16:12.</p>
  
  <p>Currently I'm trying a solution with a <a href="http://qt-project.org/doc/qt-4.8/qml-timer.html" rel="noreferrer">Timer</a> component running during the application lifetime and updating the text by invoking:</p>
  
  <p><code>timeText.text = Qt.formatTime(new Date(),"hh:mm")</code></p>
  
  <p>every 60 seconds. Is there a better way to do this or using a <a href="http://qt-project.org/doc/qt-4.8/qml-timer.html" rel="noreferrer">Timer</a> component is necessary.</p>
  
  <p>Snippet with the whole code:</p>
  
  <pre><code>Text {
      id: timeText
      x: 10
      y: 10
      text: Qt.formatTime(new Date(),"hh:mm")
  }
  
  Timer {
      id: timer
      interval: 60000
      repeat: true
      running: true
  
      onTriggered:
      {
          timeText.text =  Qt.formatTime(new Date(),"hh:mm")
      }
  }
  </code></pre>