- snow[i] = Qt.createComponent("snowWindow.qml");
- var snowWindow = snow[i].createObject(root);
- snowWindow.x = Math.random() * 500;
- snowWindow.y = Math.random() * 500;
- //snowWindow.opacity = 0.9;
- //snowWindow.flags = Qt.WA_TransparentForMouseEvents | Qt.X11BypassWindowManagerHint;
-
- //snowWindow.flags = Qt.WA_TransparentForMouseEvents| Qt.FramelessWindowHint | Qt.WindowStaysOnTopHint;
- snowWindow.showMaximized();
+ snow[i].x = Math.random() * screenWidth;
+ snow[i].y = Math.random() * screenHeight;
+
+ snow[i].showMaximized();