5

I want to select a region of the text with the mouse.

TextEdit {
        id: edit
        anchors.fill: parent
        font.pixelSize: 18
        focus: true
        wrapMode: TextEdit.Wrap
        text: "bla bla"
    }

i can select with the keyboard and clicking with the mouse give focus, but i cannot select a region of text with the mouse.

is this possible. thanks!

BaCaRoZzo
  • 7,502
  • 6
  • 51
  • 82
jkj yuio
  • 2,543
  • 5
  • 32
  • 49

1 Answers1

11

Found it!

selectByMouse: true

wasn't the default.

BaCaRoZzo
  • 7,502
  • 6
  • 51
  • 82
jkj yuio
  • 2,543
  • 5
  • 32
  • 49