Remove cursor and evdevtouch input on QT5



  • 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.



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



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.