qml 中有中文乱码简单解决办法

import QtQuick 2.9
import QtQuick.Window 2.2

Window {
    visible: true
    width: 640
    height: 480
    title: qsTr("张三")
    //title: qsTr("Hello World")
}

  将文件保存成utf-8编码格式。如下图所示:

 

 

(vs2019  qt6.3.0)

posted @ 2022-08-29 17:12  noob_zxg  阅读(1232)  评论(0)    收藏  举报