在為QML編碼時,我通常通過 "uxxxx "來輸入Unicode字。但對于Unicode數字超過10000的字符,例如U 1F300,它就不起作用。如何通過Unicode號碼輸入?
ToolButton {
id: toolButton
text: "u1F300"。
}
uj5u.com熱心網友回復:
你可以使用JS函式String.fromCodePoint:
ToolButton {
id: toolButton
text: String.fromCodePoint(0x1F300)
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/310161.html
標籤:
上一篇:為什么在ng構建后出現404?
下一篇:在Qt.pro檔案中添加構建步驟
