parent
2e78526cca
commit
2744d57238
|
@ -13,13 +13,13 @@ QPA 的全称是 Qt Platform Abstraction,即 Qt 平台抽象层。在 Qt5 中
|
||||||
指定 mouse、touch、keyboard(需要加载 hid、hid-generic、usbhid 驱动):
|
指定 mouse、touch、keyboard(需要加载 hid、hid-generic、usbhid 驱动):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
<qt program> -platform linuxfb:fb=/dev/fb0 -plugin evdevmouse:/dev/input/event<X> -plugin evdevtouch:/dev/input/event<Y> -plugin evdevkeyboard:/dev/input/event<Z>
|
<qt program> -platform linuxfb:fb=/dev/fb0:mmsize=1024x600 -plugin evdevmouse:/dev/input/event<X> -plugin evdevtouch:/dev/input/event<Y> -plugin evdevkeyboard:/dev/input/event<Z>
|
||||||
```
|
```
|
||||||
|
|
||||||
### 常用宏
|
### 常用宏
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 指定插件安装路径.
|
# 指定插件安装路径.qp
|
||||||
export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/qt/plugins
|
export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/qt/plugins
|
||||||
# 指定 Platform 参数.
|
# 指定 Platform 参数.
|
||||||
export QT_QPA_PLATFORM=linuxfb:tty=/dev/fb0
|
export QT_QPA_PLATFORM=linuxfb:tty=/dev/fb0
|
||||||
|
|
Loading…
Reference in New Issue