Qml: how to make text or label selectable?
问题 Let's say I have text component: Text { text: "Hello" wrapMode: Text.WordWrap } How to make it selectable? 回答1: 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 } 来源: https://stackoverflow.com/questions/49784099/qml-how-to-make-text-or-label-selectable