11
votes

Let's say I have text component:

Text {      
      text: "Hello"
      wrapMode: Text.WordWrap    
}

How to make it selectable?

1

1 Answers

12
votes

That is a bug reported: QTBUG-14077, and the workaround is to use TextEdit in read-only mode:

TextEdit {
    text: "Hello"
    readOnly: true
    wrapMode: Text.WordWrap
    selectByMouse: true
}