QT program runs on the PC, the font size is no problem, but down to the development Board, it becomes very small, almost invisible,
Board folinx6410 qt4.7.1 4.3 inch LCD screen
Try to add-font Unifont in the back, the word is bigger, but the size is the same.
After the online find a method: Set environment variables on the board
Export qws_display=linuxfb:mmwidth:240:0
240 This value can be modified by itself, the smaller the value, the word on the board will be displayed larger. And the size of the word is controlled by the program.
If this changes, there is no change (sometimes ineffective, do not know why), then try
Export qws_display= "linuxfb:mmheight=125:mmwidth=39"
This seven-inch screen for 800x480, I think almost, we can modify their own
QT display in Chinese under ARM board
Copy a SIMSUM.TTC from the Windows system
Put it under the lib/fonts in the QT directory of the board.
When running the program, add-font SimSun in fact with Unifont can also display Chinese (but it will make the text size is the same, cannot be controlled by the program size).
This can only solve the TR ("English") This qtransltor translated Chinese, if you want to display TR ("Chinese") This is the Chinese language itself is garbled, you can add the following lines of code
Qtextcodec::setcodecforlocale (Qtextcodec::codecforname ("UTF-8"));
QTEXTCODEC::SETCODECFORTR (Qtextcodec::codecforname ("UTF-8"));
Qtextcodec::setcodecforcstrings (Qtextcodec::codecforname ("UTF-8"));
When running, use./1-qws-display "linuxfb:mmwidth200:mmheight80:0"