Please try run my qml and figure out what is wrong. I corrected code and it is still not working, it is as follow:
Qt Code:
  1. import QtQuick 2.5
  2. import QtQuick.Window 2.2
  3. import QtQuick.Controls 1.4
  4.  
  5. Window {
  6. visible: true
  7. title: qsTr("Hello World")
  8. visibility: Window.Maximized
  9. Rectangle
  10.  
  11. {
  12. id: baza
  13. x: 0
  14. y: 0
  15. width: parent.width
  16. height: parent.height
  17.  
  18. Rectangle
  19. {
  20. id: rect1
  21. x: 0
  22. y: 0
  23. width: 9
  24. height: 100
  25. radius: width / 2
  26. color: "blue"
  27.  
  28. SequentialAnimation on y {
  29. loops: Animation.Infinite
  30. running: true
  31. NumberAnimation { from: 0; to: { baza.height - rect1.heigh; } easing.type: Easing.OutExpo; duration: 3000 }
  32. }
  33. }
  34.  
  35.  
  36.  
  37. MouseArea
  38.  
  39. {
  40.  
  41. anchors.fill: baza
  42.  
  43. onClicked:
  44.  
  45. {
  46. Qt.quit();
  47.  
  48. }
  49.  
  50. }
  51.  
  52. }
  53. }
To copy to clipboard, switch view to plain text mode