tests/manual/scenegraph_lancelot/data/text/textedit_multiparagraph_selected.qml
raw| 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 | font.family: "Arial" |
| 11 | font.pixelSize: 20 |
| 12 | textFormat: Text.RichText |
| 13 | text: "<p>First line</p><p>Second line</p><p>Third line</p><p>Fourth line</p>" |
| 14 | |
| 15 | Component.onCompleted: { |
| 16 | textEdit.select(18, 26) |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | } |