[meta-freescale] YoctoProjectChinesedisplay'sissure

hehaibo hehaibo at huania.com
Sun Sep 20 20:48:00 PDT 2015


Yoctoproject Engineer:



Now the company is using i.MX6 CPU Freescale program, according to Yocto Project User's Guide Freescale to get the code.
     mkdir fsl-release-bsp
     $ cd fsl-release-bsp
     $ git config --global user.name "Your Name"
     $ git config --global user.email "Your Email"
     $ git config --list
     $ repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.14.28-1.0.0_ga
     $ repo sync
     $ MACHINE=imx6qsabresd source fsl-setup-release.sh -b build-x11 -e x11 (dfb,wayland)
     $ bitbake fsl-image-gui and bitbake fsl-image-qt5 
    Through QT, Creator QT5.3.2 3.4 to write app program
    UI on the interface of Chinese fonts can be displayed properly, only the window title does not show up or frame

    usr/lib/fonts/wqy-zenhei.ttc    ------>Font
    usr/share/fonts/wqy-zenhei.ttc  ------>Font

QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
QFont font;    
font.setFamily(QString::fromUtf8("WeiQuanYi Zen Hei"));    
font.setPointSize(20);   
QApplication::setFont(font);
ui->pushButton->setText(QObject::trUtf8("A显示中文"));            --------->  Normal display   
ui->label->setText(QObject::tr("B中文显示"));                          --------->  Normal display
ui->lineEdit->setText(QString::fromLocal8Bit("C我爱你我的祖国")); --------->  Normal display  
ui->textEdit->setText("D我爱你我的祖国");                               --------->  Normal display

setWindowTitle(QObject::trUtf8("BB中文显示"));                     --------->not display
setWindowTitle(QString::fromLocal8Bit("CC中文显示DD"));         --------->not display
setWindowTitle(QObject::tr("DD中文显示"));                        --------->not display
this->setWindowTitle(("UTF显示"));                                   --------->not display

Excuse me, the yocto project is supported by the Chinese font display, how to solve the problem of Chinese font display

Please provide help or support, thank you


                                                                                    hehaibo at huania.com 
                                                                        何海波
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20150921/52686910/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bg.jpg
Type: image/jpeg
Size: 22199 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20150921/52686910/attachment.jpg>


More information about the meta-freescale mailing list