Debian Codegraph @

tests/manual/scenegraph_lancelot/data/text/text_table_inline_image.qml

raw
1 import QtQuick 2.0
2
3 Item {
4 width: 320
5 height: 480
6
7 Text {
8 anchors.centerIn: parent
9 font.family: "Arial"
10 font.pixelSize: 16
11 textFormat: Text.RichText
12 text: "A table: <table border=2>"
13 + "<tr><th>Header 1</th><th>Header 2</th></tr>"
14 + "<tr><td>Cell 1</td><td>Cell 2 <img height=16 width=16 src=\"data/logo.png\" /></td></tr>"
15 + "<tr><td>Cell <img height=16 width=16 src=\"data/logo.png\" /> 3</td><td>Cell 4</td></tr>"
16 + "<tr><td colspan=2>Ce<img height=16 width=16 src=\"data/logo.png\" />ll 5</td></tr>"
17 + "<tr><td rowspan=2> <img height=16 width=16 src=\"data/logo.png\" />Cell 6</td><td>Cell 7</tr>"
18 + "<tr><td>Cell 8 <img height=16 width=16 src=\"data/logo.png\" /></td></tr>"
19 }
20 }