Changes between Version 5 and Version 6 of qt
- Timestamp:
- 09/27/2021 07:40:40 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
qt
v5 v6 25 25 EGLFS forces the first top-level window (either a QWidget or a QQuickView) to become full screen and chosen to be the root widget window into which all other top-level widgets are composited. There are a number of env variables that can be used to configure EGLFS: see https://doc.qt.io/qt-5/embedded-linux.html#eglfs 26 26 27 To use the EGLFS platform plugin with a KMS/DRM backend you need to define a screen configuration file customized to your board and display. For a Gateworks Ventana board with 1080p HDMI the configuration would be: 27 To use the EGLFS platform plugin with a KMS/DRM backend you need to define a screen configuration file customized to your board and display. 28 29 Examples: 30 * 1080p HDMI: 28 31 {{{#!bash 29 cat << EOF > /etc/ ventana.json32 cat << EOF > /etc/eglfs_hdmi.json 30 33 { 31 34 "device": "/dev/dri/card1", … … 44 47 } 45 48 EOF 46 export QT_QPA_EGLFS_KMS_CONFIG=/etc/ ventana.json49 export QT_QPA_EGLFS_KMS_CONFIG=/etc/eglfs_hdmi.json 47 50 export QT_QPA_EGLFS_ALWAYS_SET_MODE=1 48 51 export QT_QPA_PLATFORM=eglfs 49 52 }}} 53 * 1024x600 LVDS: 54 {{{#!bash 55 cat << EOF > /etc/eglfs_lvds.json 56 { 57 "device": "/dev/dri/card1", 58 "hwcursor": false, 59 "pbuffers": true, 60 "outputs": [ 61 { 62 "name": "HDMI-A-1", 63 "mode": "off" 64 }, 65 { 66 "name": "LVDS-1", 67 "mode": "1024x600" 68 } 69 ] 70 } 71 EOF 72 export QT_QPA_EGLFS_KMS_CONFIG=/etc/eglfs_lvds.json 73 export QT_QPA_EGLFS_ALWAYS_SET_MODE=1 74 export QT_QPA_PLATFORM=eglfs 75 }}} 76 50 77 51 78 In order to use EGLFS you need to be using a kernel with the etnaviv KMS/DRM driver enabled, libdrm (userspace lib to interface with Linux DRM drivers), and libmesa. Note that the etnaviv driver uses cma memory - if you get memory allocation errors when trying to run applications try increasing the cma memory via the kernel command-line.