Debian Codegraph @

tests/manual/scenegraph_lancelot/data/text/textedit_selected_inline_image_selection_outside.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.pixelSize: 16
11 width: parent.width
12 wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
13 textFormat: Text.RichText
14 text: "This is selected from here and <img width=16 height=16 src=\"data/logo.png\" /> to here but not further"
15
16 Component.onCompleted: {
17 textEdit.select(2, 3)
18 }
19 }
20 }