2
comments
What?
5 0 Reply`import QtQuick 2.6 import QtQuick.Window 2.2 import QtQuick.Controls 1.5
Window { id: window width: 200 //Screen.width *10 height: 200 //Screen.height *10 visible: true
color: "transparent" // color: "#000000" flags: Qt.FramelessWindowHint
/* Rectangle { width: 100; height: 100 color: "blue" transform: Rotation { origin.x: 50; origin.y: 50; angle: 45} }
*/
property var i: 0
Image { id: ima anchors.fill: parent source: "file://replaceme with the full path of of a transparent png" rotation: 45 // transform: Rotation { origin.x: 100; origin.y: 100; angle: 45 } } Timer { interval: 1; running: true; repeat: true onTriggered: { // window.setX(i) i=(1+i)%360; // console.log(i); ima.rotation=i; }
}
} `
put this into a qml project compile it and run it a hundred times to get the same effect
1 0 Replyrun the result of this https://github.com/lnee94/kursed/tree/main/teh with this
for i in {1..100} ;do ./teh (formating prevens me from puting a "and charictor" ) ;done
1 0 Reply