spawning of windows
[qt-letitsnow] / contents / ui / snowWindow.qml
1
2 /*
3  *   Copyright 2020 Robin Krens <robin@robinkrens.nl>
4  *
5  *   This program is free software; you can redistribute it and/or modify
6  *   it under the terms of the GNU Library General Public License as
7  *   published by the Free Software Foundation; either version 2 or
8  *   (at your option) any later version.
9  *
10  *   This program is distributed in the hope that it will be useful,
11  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *   GNU General Public License for more details
14  *
15  *   You should have received a copy of the GNU Library General Public
16  *   License along with this program; if not, write to the
17  *   Free Software Foundation, Inc.,
18  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
19  */
20
21 import QtQuick 2.6
22 import QtQuick.Controls 1.4
23 import QtQuick.Window 2.2
24
25 ApplicationWindow {
26         
27         id: root;
28         
29         width: 30; height: 30;
30         x: 500; y: 500;
31         //color: "transparent";
32         opacity: 0.5;
33         title: qsTr("Snowy")
34
35         flags: Qt.WindowStaysOnTopHint | Qt.FramelessWindowHint | Qt.WA_TransparentForMouseEvents | Qt.WA_TranslucentBackground | Qt.X11BypassWindowManagerHint;
36
37
38         //flags: Qt.WA_TranslucentBackground | Qt.X11BypassWindowManagerHint | Qt.WA_TransparentForMouseEvents;
39
40         //flags: Qt.WA_TranslucentBackground | Qt.WA_TransparentForMouseEvents| Qt.FramelessWindowHint | Qt.WindowStaysOnTopHint;
41
42         //flags: Qt.WindowStaysOnTopHint | Qt.FramelessWindowHint | Qt.WA_TransparentForMouseEvents | Qt.WA_TranslucentBackground;
43         //color: "transparent";
44
45     //          Text {
46     //          anchors.centerIn: parent
47     //          color: "red";
48     //          text: qsTr("Hello World.")
49     //          }
50 }