Let's say I have text component:
Text {
text: "Hello"
wrapMode: Text.WordWrap
}
How to make it selectable?
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
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With