This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
products:sbc:vim3:applications:qt5 [2022/07/13 23:35] hyphop [Demonstrate] |
products:sbc:vim3:applications:qt5 [2023/02/05 20:08] nick |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~tag> | ||
====== VIM3/3L QT5 ====== | ====== VIM3/3L QT5 ====== | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | |||
- | This document is mainly QT5 library. You will learn how to install QT5, set it up and test it. | ||
<WRAP info > | <WRAP info > | ||
Line 50: | Line 49: | ||
For more demos, please check ''/ | For more demos, please check ''/ | ||
</ | </ | ||
+ | |||
+ | ===== 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 '' | ||
+ | |||
+ | |||
+ | <tabbox VIM3> | ||
+ | |||
+ | ```shell | ||
+ | export QT_QPA_EGLFS_ROTATION=90 | ||
+ | export QT_QPA_EGLFS_DISABLE_INPUT=1 | ||
+ | export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/ | ||
+ | export QT_QPA_GENERIC_PLUGINS=evdevtouch:/ | ||
+ | ``` | ||
+ | |||
+ | <tabbox VIM3L> | ||
+ | |||
+ | ```shell | ||
+ | export QT_QPA_EGLFS_ROTATION=90 | ||
+ | export QT_QPA_EGLFS_DISABLE_INPUT=1 | ||
+ | export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/ | ||
+ | export QT_QPA_GENERIC_PLUGINS=evdevtouch:/ | ||
+ | ``` | ||
+ | </ | ||
+ | |||
+ | For other orientation rotation, you can change them yourself. | ||
+ | |||
===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
When you install such version of library you will break some packages (such as qtcreator) which depend on the original library, if you don’t want to break the packages you can follow the instructions below to install the original QT5 library. | When you install such version of library you will break some packages (such as qtcreator) which depend on the original library, if you don’t want to break the packages you can follow the instructions below to install the original QT5 library. | ||
- | ```sh | + | |
+ | ```shell | ||
$ wget http:// | $ wget http:// | ||
$ sudo dpkg -i libqt5gui5_5.12.8+dfsg-0ubuntu1_arm64.deb | $ sudo dpkg -i libqt5gui5_5.12.8+dfsg-0ubuntu1_arm64.deb |