Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim3:applications:qt5

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
products:sbc:vim3:applications:qt5 [2023/02/05 20:03]
nick
products:sbc:vim3:applications:qt5 [2023/02/05 20:08]
nick
Line 49: Line 49:
 For more demos, please check ''/usr/lib/aarch64-linux-gnu/qt5/examples''. For more demos, please check ''/usr/lib/aarch64-linux-gnu/qt5/examples''.
 </WRAP> </WRAP>
 +
 +===== Setup for TS050 Touchscreen (Only for VIM3/VIM3L) =====
 +
 +If you want to run the QT demo on TS050 touchscreen you need to remove the HDMI cable first.
 +
 +The TS050 touchscreen is ''portrait mode'' by default, if you want to use the QT under ''landscape mode'' you need to setup the environment variables below to rotate the screen and touchscreen:
 +
 +
 +<tabbox VIM3>
 +
 +```shell
 +export QT_QPA_EGLFS_ROTATION=90
 +export QT_QPA_EGLFS_DISABLE_INPUT=1
 +export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event3:rotate=90
 +export QT_QPA_GENERIC_PLUGINS=evdevtouch:/dev/input/event3
 +```
 +
 +<tabbox VIM3L>
 +
 +```shell
 +export QT_QPA_EGLFS_ROTATION=90
 +export QT_QPA_EGLFS_DISABLE_INPUT=1
 +export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event4:rotate=90
 +export QT_QPA_GENERIC_PLUGINS=evdevtouch:/dev/input/event4
 +```
 +</tabbox>
 +
 +For other orientation rotation, you can change them yourself.
 +
  
 ===== Troubleshooting ===== ===== Troubleshooting =====
Last modified: 2023/02/05 20:09 by nick