摘要:
(一)1.首先将字体(我选择windows下的宋体simsun.ttf)copy至qte的lib/font目录下2.设置环境变量export QT_QWS_FONTDIR=/mnt/nfs/qte-arm/lib/fonts/3.在函数里指定字体 eg:测试例程 1#include2#include3#include4#include5#include6#include7#include8intmain(intargc,char*argv[])9{10 QApplication app(argc,argv);11// app.setFont(QFont("simsun")) 阅读全文
2013年6月24日 #