-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.qml
More file actions
34 lines (30 loc) · 663 Bytes
/
main.qml
File metadata and controls
34 lines (30 loc) · 663 Bytes
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
import QtQuick 2.11
import QtQuick.Window 2.11
Window {
visible: true
width: 800;
height: 600;
title: qsTr("Hello World")
TextEdit {
id: mdInput
anchors.top: parent.top;
anchors.left: parent.left;
anchors.bottom: parent.bottom;
width: parent.width/2 - anchors.margins;
anchors.margins: 4
Rectangle {
color: "lightgray";
anchors.fill: parent;
z: parent.z-1
}
}
Text {
textFormat: Text.MarkdownText
anchors.top: parent.top;
anchors.right: parent.right;
anchors.bottom: parent.bottom;
width: parent.width/2 - anchors.margins;
anchors.margins: 4
text: mdInput.text
}
}