import QtQuick 2.1 import QtMultimedia 5.0 Rectangle { id: rect width: 640 height: 240 Audio { id: player source: "file:///test.mp3" } MouseArea { anchors.fill: parent onClicked: { player.play(); } } Rectangle { anchors { top: parent.top; left: parent.left; bottom: parent.bottom } color: "red" width: (player.position/player.duration) * rect.width } Text { anchors.fill: parent text: player.position/1000 fontSizeMode: Text.Fit; minimumPointSize: 8; font.pointSize: 96 horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter } }