Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to select TextEdit region with mouse

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!

like image 753
jkj yuio Avatar asked Dec 25 '22 09:12

jkj yuio


1 Answers

Found it!

selectByMouse: true

wasn't the default.

like image 125
jkj yuio Avatar answered Dec 28 '22 08:12

jkj yuio