Changes between Version 6 and Version 7 of qt


Ignore:
Timestamp:
10/13/2021 08:16:21 PM (14 months ago)
Author:
Tim Harvey
Comment:

added touch display example

Legend:

Unmodified
Added
Removed
Modified
  • qt

    v6 v7  
     1[[PageOutline]]
     2
    13= Qt For Embedded Linux
    24
     
    7880In 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.
    7981
     82For more info see:
     83 - https://doc.qt.io/qt-5.12/embedded-linux.html#platform-plugins-for-embedded-linux-devices
    8084
    8185[=#linuxfb]
     
    164168
    165169
    166 == User Interface Design with QT
     170[=#fingerpaint]
     171== Qt Fingerpaint Touchscreen Example
     172Qt has a [https://doc-snapshots.qt.io/qt5-5.12/qtwidgets-touch-fingerpaint-example.html fingerpaint example] app demonstrating how to use touch input
     173
     174Examples:
     175 * Ubuntu Focal 20.04:
     176{{{#!bash
     177apt update && apt upgrade # always a good idea to keep up to date
     178# install basic development requirements
     179apt install build-essential git
     180# install libevdev
     181apt install libevdev2 libevdev-tools
     182# install qt5 runtime and qml modules required
     183apt install qt5-default
     184git clone git://code.qt.io/qt/qtbase.git -b 5.12
     185cp -r qtbase/examples/widgets/touch/fingerpaint .
     186cd fingerpaint/
     187qmake
     188make
     189# run using linuxfb backend
     190./fingerpaint -platform linuxfb
     191}}}
     192
     193For more details Qt Input see:
     194 - https://doc.qt.io/qt-5.12/embedded-linux.html
     195
     196= User Interface Design with QT
    167197It is often best to consider QML instead of HTML5 for UI design. QML is much easier to use than HTML5 and is typically just fine for most user interface designs. QML has been designed for compsiting UIs and screen elements from the start while HTML5 had these things added to an existing standard meant for text rendering.