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. Remove cursor and evdevtouch input on QT5

Remove cursor and evdevtouch input on QT5

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 7.2k Views 1 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.
  • C Offline
    C Offline
    codeless
    wrote on last edited by
    #1

    Hi,

    I'm working on a embedded card using Linux, with a touchscreen and Qt5.0.2.
    When I launch my application, it looks like this:

    ./myapp -plugin EvdevTouch:/dev/input/event2

    evdevtouch: Using device /dev/input/event1
    min X: 0 max X: 0
    min Y: 0 max Y: 0
    min pressure: 0 max pressure: 0
    device name: max11801_ts
    evdevtouch: Using device /dev/input/event2
    min X: 0 max X: 0
    min Y: 0 max Y: 0
    min pressure: 0 max pressure: 1
    device name: eGalax Touch Screen
    Protocol type A
    Protocol type A

    First, I want to remove the cursor shown along the application, because it's not necessary with a touchscreen. I found this post: http://qt-project.org/forums/viewthread/7698 , but it only works for Qt4 and I don't know how to hide the cursor in Qt5. Plus, I don't use a windowing system (eglfs).

    The second problem is, when the application is launched, evdevtouch use only the /dev/input/event1 device by default and I must specify the right one (event2). It works but i want to tell to evdevtouch to not use the event1 device. How to do that ?

    Thanks for your help.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rush
      wrote on last edited by
      #2

      Anyone knows the answer to this question? I am also using eglfs, and cannot find how to hide mouse cursor!

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

        And of course, as soon as I posted the question, I found the solution.

        Use QT_QPA_EGLFS_HIDECURSOR enviroment variable, and set it to 1. For example, put it in /etc/profile like this:

        export QT_QPA_EGLFS_HIDECURSOR=1

        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