qvfb怎么用

来源:互联网 发布:冰寒扒皮知乎 编辑:程序博客网 时间:2024/04/30 10:03
参考见:http://doc.trolltech.com/4.6/qt-embedded-running.html
1.打开QVFB:
qvfb &
2.在qvfb里运行程序的格式和参数:
格式:./filename -qws
参数见下表1。
表1
OptionDescription                -fn <font>字体。如下,字体会用X逻辑字体。
./myapplication -fn helvetica
               -bg <color>设置默认背景颜色。如下,颜色名称由QColor构造器
./myapplication -bg blue
               -btn <color>设置默认按钮颜色。如下,颜色名称由QColor构造器
./myapplication -btn green
              -fg <color>设置前景顔色。如下,颜色名称由QColor构造器
./myapplication -fg 'dark blue'
           -name <objectname>设置应用名称,即应用对象的对象名。如下
./myapplication -name texteditapplication
             -title <title>设置应用的标题。如下,
./myapplication -title 'Text Edit'
              -geometry <width>x<height>+<Xoffset>+<Yoffset>设置显示的第一个窗口是形状尺寸。如下,
./myapplication -geometry 300x200+50+50
               -keyboard使能键盘。另见:

Qt for Embedded Linux Character Input.

             -nokeyboard使能键盘。                -mouse使能鼠标。另见:

Qt for Embedded Linux Pointer Handling.

                -nomouse使能鼠标。                     -qws在仿真器上运行应用,建立一个QApplication::GuiServer类型的QApplication对象。                 -display指定屏幕驱动。另见:

Qt for Embedded Linux Display Management.

           -decoration <style>设置应用装饰。如下,可选项为windows  default  styled,另见QDecoration
./myapplication -decoration windows
来自:http://hi.baidu.com/tianshanyao/blog/item/fff8c1dcb56933e377c63837.html
原创粉丝点击