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. Calibration with touch and mouse not available
Qt 6.11 is out! See what's new in the release blog

Calibration with touch and mouse not available

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 839 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.
  • W Offline
    W Offline
    Wooshang
    wrote on last edited by
    #1

    Hi all,
    I used a touch screen with ts_lib compile in Qt and I find the example how to calibrate.
    http://doc.qt.io/qt-4.8/qt-qws-mousecalibration-example.html

    It works fine when only have touch screen.But in my project I need touh and mouse. So I set QWS_MOUSE_PROTO as
    QWS_MOUSE_PROTO=auto:/dev/input/mice tslib:/dev/input/touchscreen0

    Now the mouse works fine. But when I calibrate agian the touch becomes error.

    Any ideas?

    W 1 Reply Last reply
    0
    • W Wooshang

      Hi all,
      I used a touch screen with ts_lib compile in Qt and I find the example how to calibrate.
      http://doc.qt.io/qt-4.8/qt-qws-mousecalibration-example.html

      It works fine when only have touch screen.But in my project I need touh and mouse. So I set QWS_MOUSE_PROTO as
      QWS_MOUSE_PROTO=auto:/dev/input/mice tslib:/dev/input/touchscreen0

      Now the mouse works fine. But when I calibrate agian the touch becomes error.

      Any ideas?

      W Offline
      W Offline
      Wooshang
      wrote on last edited by
      #2

      @Wooshang said in Calibration with touch and mouse not available:

      Hi all,
      I used a touch screen with ts_lib compile in Qt and I find the example how to calibrate.
      http://doc.qt.io/qt-4.8/qt-qws-mousecalibration-example.html

      It works fine when only have touch screen.But in my project I need touh and mouse. So I set QWS_MOUSE_PROTO as
      QWS_MOUSE_PROTO=auto:/dev/input/mice tslib:/dev/input/touchscreen0

      Now the mouse works fine. But when I calibrate agian the touch becomes error.

      Any ideas?

      It's my mistake. My touch driver register two handlders /dev/input/event0 and /dev/input/mouse0. So the Qt reports wrong coordinates.

      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