在linux下正常的程序,移植到ARM上,中文不能显示。网上好多介绍,一头雾水。查看其中话题是关于中文显示的(http://www.qtcn.org/bbs/simple/?t55852.html)。经过实践能行。过程如下:

看ARM上的环境:

TSLIB_TSDEVICE=/dev/input/touchscreen0
USER=root
OLDPWD=/home/root
HOME=/home/root
PS1=\u@\h:\w\$
QT_QPA_PLATFORM_PLUGIN_PATH=/qt5/plugins/platforms
LOGNAME=root
TERM=xterm
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:
SHELL=/bin/sh
QT_QPA_FONTDIR=/qt5/lib/fonts/
PWD=/home/root/mytest
QT_PLUGIN_PATH=/qt5/plugins/
EDITOR=/bin/vi

注意红字。把pc机里面/usr/shared/fonts/truetype/arphic(这种字体叫文鼎字体[表情])里面的东西拷到班子里就ok了。arphic目录下的二个字库文件放到QT的字库目录中,搞定,

相关文章:

  • 2022-01-04
  • 2022-12-23
  • 2022-02-10
  • 2021-11-25
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2021-06-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-24
  • 2021-11-17
  • 2021-06-21
  • 2021-08-14
  • 2022-12-23
相关资源
相似解决方案