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. Issues with touchscreen on a raspberry pi.

Issues with touchscreen on a raspberry pi.

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 3 Posters 1.1k Views 2 Watching
  • 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.
  • B Offline
    B Offline
    bigjake
    wrote on last edited by
    #1

    I am having issues getting Qt 5.11.1 to work with an SPI LCD panel (2.8" Adafruit pitft) on a Raspberry Pi 3. I have built Qt on the pi and qmlscene displays nicely, but I cannot get the touch screen to work with Qt. I've tried both the input and tslib based plugins and neither work.

    ts_test works fine and reports proper coordinates.

    Any ideas?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Might be a silly question but did you check that the plugins were properly loaded ?
      Did you check that you have proper access to the device ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bigjake
        wrote on last edited by
        #3

        I should've been more clear. I am getting touch events from the touch screen (inside qmlscene), but the coordinates are completely messed up. I've tried various rotation combinations, etc. and I can't get them to work.

        O 1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          For tslib, did you run a calibration before using it ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • B Offline
            B Offline
            bigjake
            wrote on last edited by
            #5

            I did. It calibrated fine, and ts_test works great.

            1 Reply Last reply
            0
            • B bigjake

              I should've been more clear. I am getting touch events from the touch screen (inside qmlscene), but the coordinates are completely messed up. I've tried various rotation combinations, etc. and I can't get them to work.

              O Offline
              O Offline
              OutsourcedGuru
              wrote on last edited by
              #6

              @bigjake I haven't worked with Qt yet (waiting for my license to start) but I have worked with the Raspberry Pi 3B + 2.8" capacitive/resistive touchscreens as sold by Adafruit. Properly adjusting orientation for both display/touch at the same time for both console-based and X windows—based apps is rather difficult.

              Here is a conversation I just had with Ada herself on the subject, which might be useful.

              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