Qt for Embedded Linux Display Management
来源:互联网 发布:python quants 编辑:程序博客网 时间:2024/05/16 06:14
Qt for Embedded Linux Display Management
When rendering, the default behavior for each Qt for Embedded Linux client is to render its widgets into memory, while the server is responsible for putting the contents of the memory onto the screen. The server uses the screen driver to copy the content of the memory to the display.
The screen driver is loaded by the server application when it starts running, using Qt's plugin system.
Contents:
Available Drivers
Qt for Embedded Linux provides drivers for the Linux framebuffer, the virtual framebuffer, transformed screens, VNC servers and multi screens. Run the configurescript to list the available drivers:
In the default Qt configuration, only an unaccelerated Linux framebuffer driver (/dev/fb0) is enabled. The various drivers can be enabled and disabled using theconfigure script. For example:
Custom screen drivers can be implemented by subclassing the QScreen class and creating a screen driver plugin (derived from the QScreenDriverPlugin class). The default implementation of the QScreenDriverFactory class will automatically detect the plugin, loading the driver into the server application at run-time.
Specifying a Driver
To specify which driver to use, set the QWS_DISPLAY environment variable. For example (if the current shell is bash, ksh, zsh or sh):
The valid values for the <driver> argument are LinuxFb, QVFb, VNC, Transformed, Multi and keys identifying custom drivers, and the <display num>argument is used to separate screens that are using the same screen driver and to enable multiple displays (see the Running Qt for Embedded Linux Applicationsdocumentation for more details). The driver specific options are described in the table below.
The QWS_DISPLAY environment variable can also be set using the -display option when running an application. For example:
Subdrivers and Multiple Drivers
The VNC, Transformed and Multi screen drivers depend on subdrivers. The general syntax for specifying a driver is as follows:
In the case of subdrivers, it is important to add a space between each subdriver and before the display number to separate the various drivers and displays. Note that Multi screen drivers can have several subdrivers. For example:
Note also that the VNC screen driver defaults to a virtual screen driver if no subdriver is specified. In this case the VNC driver accepts a few additional (optional) arguments specifying the size and depth of the default virtual screen:
- size=<width x height>
- depth=<value>
- mmHeight=<physical height in millimeters>
- mmWidth=<physical width in millimeters>
Example running the VNC screen driver with a virtual screen of size 720x480 with 32 bits per pixel:
Example running the VNC screen driver on top of the Linux framebuffer driver:
In this last example, Qt is using two screen drivers simultaneously, displaying output on both the device's screen and across a network on VNC client displays.
http://harmattan-dev.nokia.com/docs/library/html/qt4/qt-embedded-displaymanagement.html
- Qt for Embedded Linux Display Management
- Qt for Embedded Linux Display Management
- QT学习笔记(六):Embedded Linux QT Display Management
- 【QT】Qt for Embedded Linux Architecture
- Cross-Compiling Qt for Embedded Linux Applications
- Qt for Embedded Linux Environment Variables
- Qt for Embedded Linux (嵌入式linuxQT)
- Qt for Embedded Linux Environment Variables
- Qt5.7 Qt for Embedded Linux
- 【QT】Qt for Embedded Linux Hardware Accelerated Graphics
- QT/E 4.5.0 For Embedded Linux 的 bug
- fedora10 下建立Qt for Embedded linux 4.5开发环境
- fedora10 下建立Qt for Embedded linux 4.5开发环境
- 在mini2440上移植qt embedded for linux 4.5.2
- 在mini2440上移植qt embedded for linux 4.5.2
- 在mini2440上移植qt embedded for linux 4.5.2
- 在mini2440上移植qt embedded for linux 4.5.2
- Qt for Embedded Linux Architecture-嵌入式linuxQT架构
- [matlab]mathworks上的cody challenge题解及一些常用函数的总结(6)
- SOCKET开发经典讲解
- imagestring的使用 把验证码放到图片上面
- 在一个字符串中找到第一个只出现一次的字符。如abaccdeff输出b
- Android读取sim卡信息实例
- Qt for Embedded Linux Display Management
- E4
- VC菜菜鸟:建立第一个基于Visual C++的Windows窗口程序
- list分区
- ORACLE锁
- Android如何区分drawable下面低中高三个级别的图片
- 智力题(1)
- 【Java&Android开源库代码剖析】のAndroid-Universal-Image-Loader-part1
- C++的I/O(vc版)(二)