Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. Qt RaspberryPi Touch screen evedev not rotating, tslib not catching MultiPointTouchArea

Qt RaspberryPi Touch screen evedev not rotating, tslib not catching MultiPointTouchArea

Scheduled Pinned Locked Moved Unsolved QtonPi
1 Posts 1 Posters 1.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • HeinrichH Offline
    HeinrichH Offline
    Heinrich
    wrote on last edited by
    #1

    Qt RaspberryPi Touch screen

    I Cross compiled QT 5.10.1 to RaspberryPi 2 (stretch). Using Virtualbox with Ubuntu 16.04 x64
    With as waveshare 10.1 inch legacy

    When using evedev the rotation is off by 90.
    QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event1:rotate=90 does not work
    evedev does catch touch events but not mouse events

    When using tslib, the coordinates works correctly but my QML does not catch any mouse or touch events.

    When I export TSLIB_PLUGINDIR=/usr/local/lib/ts qt results in a segmentation fault.

    So this is my current configuration
    export QT_QPA_EGLFS_HIDECURSOR=1
    export QT_QPA_EGLFS_DISABLE_INPUT=1
    export QT_QPA_GENERIC_PLUGINS=Tslib
    export QT_QPA_EGLFS_PHYSICAL_WIDTH=274
    export QT_QPA_EGLFS_PHYSICAL_HEIGHT=187
    export QT_QPA_EGLFS_WIDTH=1024
    export QT_QPA_EGLFS_HEIGHT=600

    export TSLIB_FBDEVICE=/dev/fb0
    export TSLIB_CONSOLEDEVICE=none
    export TSLIB_TSDEVICE=/dev/input/event1
    export TSLIB_CONFFILE=/etc/ts.conf
    export TSLIB_CALIBFILE=/etc/pointercal

    The above config works but not for the code below

    MultiPointTouchArea {
    anchors.fill: parent
    mouseEnabled: false
    onTouchUpdated: {
    console.log("Top touch area contains:",
    touchPoints.length,
    "touches.")
    }
    }

    I need either of the two to work or a work around for a tumbler to know it has been selected.

    FS Eng (TÜV Rheinland, #15376/ 17, HW/SW Design)
    Project Engineer
    www.ecam.co.za

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved