Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. touch screen issue with QT

touch screen issue with QT

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 384 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.
  • S Offline
    S Offline
    syedr
    wrote on last edited by
    #1

    Hi

    I could able to calibrate touch screen using ts_calibrate and ts_test works fine as expected.

    But when the QT application is executed, touch screen works in reverse direction like when top icon is clicked bottom icon gets executed.

    Please suggest how to resolve the QT issue.

    1 Reply Last reply
    0
    • KH-219DesignK Offline
      KH-219DesignK Offline
      KH-219Design
      wrote on last edited by
      #2

      I have a vague recollection that I dealt with something similar approximately 3 years ago, but I no longer recall the details.

      Meanwhile, it does look like something from this post might help you:
      https://stackoverflow.com/questions/52826172/qt-5-11-touch-input-inverted-in-my-application

      Apparently that user's final working solution was to use evdev.

      Oddly, I feel that what worked for me (in my barely-recollected case) was something that other user mentions in their question as part of "what didn't work." Which is to place your own config in /usr/share/X11/xorg.conf.d/ and use TransformationMatrix.... something roughly like:

      #  WARNING. ROUGH EXAMPLE. CONSULT X11/XORG docs!!!
      Section "InputClass"
              Identifier "libinput touchscreen catchall"
              MatchIsTouchscreen "on"
              MatchDevicePath "/dev/input/event*"
              Driver "libinput"
              Option "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"
      EndSection

      www.219design.com
      Software | Electrical | Mechanical | Product Design

      1 Reply Last reply
      0
      • S Offline
        S Offline
        syedr
        wrote on last edited by
        #3

        Hi

        Thanks for the reply.
        I am working on latest kernel and could not find the evdev conf file in my yocto rootfs.

        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