QT对应开发板上的LCD的画面旋转的方法

参考:http://blog.chinaunix.net/uid-20909886-id-4342635.html
1、与qt程序显示文字大小有关的两项
export QWS_DISPLAY=LinuxFB:mmWidth200:mmHeight100:0   //输出设备为Linux framebuffer,尺寸定义(尺寸定义与文字大小有直接关系)
export QWS_SIZE=800x600   //屏幕大小

2、屏幕旋转
export QWS_DISPLAY=Transformed:Rot90    //旋转90 可以旋转0、90、180、270

3、在屏幕旋转的同时保持文字大小
export QWS_DISPLAY=Transformed:Rot90:LinuxFB:mmWidth200:mmHeight100:0

4、用-display参数来代替以上export的变量
假如将运行的程序是qtdemo
qtdemo -qws  -display "LinuxFB:mmWidth200:mmHeight100:0"
qtdemo -qws  -display "Transformed:Rot90"
qtdemo -qws  -display "Transformed:Rot90:LinuxFB:mmWidth200:mmHeight100:0"

猜你喜欢

转载自blog.csdn.net/morixinguan/article/details/80218381