tests/manual/scenegraph_lancelot/data/text/textedit_multiline_selected_eol.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: 16 |
| 12 | width: 200 |
| 13 | wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere |
| 14 | text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. In id diam vitae enim fringilla vestibulum. Pellentesque non leo justo, quis vestibulum augue" |
| 15 | |
| 16 | Component.onCompleted: { |
| 17 | textEdit.select(63, 67) |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | } |