-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApplication.qml
60 lines (53 loc) · 1.27 KB
/
Application.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import QtQuick 2.14
import QtQuick.Controls 2.14
import QtQuick.Window 2.14
import QtWebEngine 1.0
Window {
id: window
visible: true
width: 1200
height: 500
color: "#202020"
flags: Qt.Window | Qt.FramelessWindowHint | Qt.WindowMinimizeButtonHint | Qt.WindowMaximizeButtonHint
minimumWidth: 800
minimumHeight: 600
// for window movement
property bool maximalized: false
property point startMousePos
property point startWindowPos
property size startWindowSize
function absoluteMousePos(mouseArea) {
var windowAbs = mouseArea.mapToItem(null, mouseArea.mouseX, mouseArea.mouseY)
return Qt.point(windowAbs.x + window.x,
windowAbs.y + window.y)
}
TopBar {
id: topBar
anchors{
top: parent.top
left: parent.left
right: parent.right
}
height: 25
color: "black"
smooth: true
}
Item {
anchors{
top: topBar.bottom
left: parent.left
right: parent.right
bottom: parent.bottom
}
/*Your content here*/
}
ResizingFrames {
anchors.fill: parent
size: 3
}
}
/*##^##
Designer {
D{i:0;3d-active-scene:-1}
}
##^##*/