Is there a easy function in QT QML to convert milliseconds to a user readable time in the format hh:mm:ss:zzz ? I found tis documentation https://doc.qt.io/qt-5/qml-qtqml-date.html but i don't really understand how to use it in my case . Here is my code so far but it only displays seconds and millisenconds.
import QtQuick 2.8
import QtQuick.Controls 2.1
Rectangle {
id: mapItem
anchors.fill: parent
property int count: 0
Timer {
id: timer
interval: 100
running: true
repeat: true
onTriggered: count += 1
}
Text {
text: (count / 10).toFixed(3)
font.pixelSize: 20
font.bold: true
font.family: "Eurostile"}
}