| 1 |
import QtQuick 2.0 |
| 2 |
|
| 3 |
Item { |
| 4 |
width: 320 |
| 5 |
height: 480 |
| 6 |
|
| 7 |
TextEdit { |
| 8 |
id: textEdit |
| 9 |
anchors.centerIn: parent |
| 10 |
verticalAlignment: Text.AlignBottom |
| 11 |
font.family: "Arial" |
| 12 |
font.pixelSize: 16 |
| 13 |
textFormat: Text.RichText |
| 14 |
Component.onCompleted: textEdit.selectAll() |
| 15 |
text: |
| 16 |
"<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n" + |
| 17 |
"<html xmlns=\"http://www.w3.org/1999/xhtml\">\n" + |
| 18 |
"<body >\n" + |
| 19 |
"<table >\n" + |
| 20 |
"<tr >\n" + |
| 21 |
"<td >\n" + |
| 22 |
"Cell 1\n" + |
| 23 |
"</td>\n" + |
| 24 |
"</tr>\n" + |
| 25 |
"<tr >\n" + |
| 26 |
"<td >\n" + |
| 27 |
"Cell 2\n" + |
| 28 |
"</td>\n" + |
| 29 |
"</tr>\n" + |
| 30 |
"<tr >\n" + |
| 31 |
"<td >\n" + |
| 32 |
"Cell 3\n" + |
| 33 |
"</td>\n" + |
| 34 |
"</tr>\n" + |
| 35 |
"</table>\n" + |
| 36 |
"</body>\n" + |
| 37 |
"</html>\n" |
| 38 |
|
| 39 |
} |
| 40 |
} |