Qt quick use Label to show Chinese words problems
-
I created a qt quick application in QtCreater 3.1.2, and I added some Label and Text to show chinese words. Running it on PC is corrected, but running on a real android device with api-10(sdk version 2.3.3) is uncorrected. Test running on higher sdk device such as Samsung was corrected. My code is here:
import QtQuick 2.2
import QtQuick.Controls 1.1ApplicationWindow {
visible: true
width: 480
height: 640Text { id: id1 text: qsTr("你好1") anchors.top: parent.top anchors.left: parent.left anchors.right: parent.right height: 100 font.pixelSize: 55 } Label{ id: id2 text: qsTr("你好2") anchors.top: id1.bottom anchors.left: parent.left anchors.right: parent.right height: 100 font.pixelSize: 55 } Text { id: id3 text: qsTr("你好3") anchors.top: id2.bottom anchors.left: parent.left anchors.right: parent.right height: 100 font.pixelSize: 55 font.weight: Font.Black; }
}
The result on api-10 was here:
http://photo.163.com/story2010/#m=1&aid=271112093&p=1