import QtQuick 2.15 import QtQuick.Controls 2.15 ApplicationWindow{ width: 500 height: 500 visible: true Column { TextEdit { textFormat: TextEdit.RichText text: 'A A This is NBSP' font.pixelSize: 32 Rectangle{ anchors.fill: parent color: "transparent" border.color: "black" } } TextEdit { textFormat: TextEdit.RichText text: 'A A This is EMSP' font.pixelSize: 32 Rectangle{ anchors.fill: parent color: "transparent" border.color: "black" } } TextEdit { textFormat: TextEdit.RichText text: 'A A This is U3000' font.pixelSize: 32 Rectangle{ anchors.fill: parent color: "transparent" border.color: "black" } } TextEdit { textFormat: TextEdit.RichText text: 'A A This is U2000' font.pixelSize: 32 Rectangle{ anchors.fill: parent color: "transparent" border.color: "black" } } TextEdit { textFormat: TextEdit.RichText text: 'A A This is U2001' font.pixelSize: 32 Rectangle{ anchors.fill: parent color: "transparent" border.color: "black" } } TextEdit { textFormat: TextEdit.RichText text: 'A A This is hard coding' font.pixelSize: 32 Rectangle{ anchors.fill: parent color: "transparent" border.color: "black" } } TextEdit { textFormat: TextEdit.RichText text: 'AA This is Copy&Paste' font.pixelSize: 32 Rectangle{ anchors.fill: parent color: "transparent" border.color: "black" } function debugUnicode(s) { var ustr = ""; for(var i = 0; i < s.length; i++) { ustr = ustr + s.charCodeAt(i).toString(16) + ";" } console.log("debugUnicode:"+ustr) } onTextChanged: { debugUnicode(text) } } } }