// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5 import QtQuick 1.0 Rectangle { id: spinner property bool show: false onShowChanged: { if(show){ timer.running = true opacity = 0.75 }else{ timer.running = false opacity = 0 } } opacity: 0 color: "#353535" Image { id: image anchors.centerIn: parent smooth: true } Timer { id: timer property int currentImage: 1 interval: 80 repeat: true running: false onTriggered: { image.source = "./images/spinner/"+currentImage+".png" currentImage++ if (currentImage === 25) { currentImage = 1 } } } MouseArea{ id: mouse anchors.fill: parent onClicked: {} } OpacityButton { id: opacityButton textLabel: "Отмена" anchors.top:image.bottom anchors.topMargin: 30 anchors.horizontalCenter: image.horizontalCenter //anchors.horizontalCenter: parent.Center width: 160 height: 55 onClicked: { spinner.show = false } } }