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. Touchscreen no work
Forum Updated to NodeBB v4.3 + New Features

Touchscreen no work

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 2 Posters 1.4k 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.
  • R Offline
    R Offline
    Rubis
    wrote on last edited by
    #1

    Hello Qt people,

    I try run my projet on RPI, I had follow this tutorial for cross compilation,
    https://visualgdb.com/tutorials/raspberry/qt/embedded/

    Now I can use qmake and make, and compile for my RPI, launch the app directly with console without desktop environnement,

    I can start application (simple test app with one button and messagebox), if I use mouse it work.

    But I need use touchscreen (USB), and this one doing nothing.

    Can you give to me way for fix my problem ? I had try tslib, I can calibrate touchscreen with ts_calibrate and some parameter, but when I use command ./myapp -plugin tslib, app return warning "qt tslib couldn't load module input".

    NB: In this tutorial in ./configure I don't put qt-mouse-tslib parameter.

    Have nice day

    jsulmJ 1 Reply Last reply
    0
    • R Rubis

      Hello Qt people,

      I try run my projet on RPI, I had follow this tutorial for cross compilation,
      https://visualgdb.com/tutorials/raspberry/qt/embedded/

      Now I can use qmake and make, and compile for my RPI, launch the app directly with console without desktop environnement,

      I can start application (simple test app with one button and messagebox), if I use mouse it work.

      But I need use touchscreen (USB), and this one doing nothing.

      Can you give to me way for fix my problem ? I had try tslib, I can calibrate touchscreen with ts_calibrate and some parameter, but when I use command ./myapp -plugin tslib, app return warning "qt tslib couldn't load module input".

      NB: In this tutorial in ./configure I don't put qt-mouse-tslib parameter.

      Have nice day

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Rubis said in Touchscreen no work:

      But I need use touchscreen (USB), and this one doing nothing.

      What does this mean? Does your touchscreen not work at all? Or you do not get the touch events?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Rubis
        wrote on last edited by
        #3

        Hello jsulm,

        The touchscreen not work at all, I had some result with use environnement variable QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event0
        But the event "clicked()" no work, only "pressed()"
        If I touch one button with clicked event, it's visual pressed but no exec his event.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Rubis
          wrote on last edited by Rubis
          #4

          export QT_QPA_EGLFS_HIDECURSOR=1 (hide mouse cursor)
          export QT_QPA_EVDEV_MOUSE_PARAMETERS=/dev/input/by-id/yourtouchscreen:abs (link your ts like mouse)

          maybe export QT_QPA_EGLFS_TSLIB=0 (Ensure tslib is disabled)

          it work !

          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