Home > Mobile >  QT program runs to the development board capacitance screen can't use how to solve
QT program runs to the development board capacitance screen can't use how to solve

Time:11-21

Development board with MYC - CA5D3X, before using the resistance of the touch screen, and then the development board bring a Qt interface, use the resistive screen time can touch screen operation, upload Qt application to development board to run when also can touch screen operation,
But for capacitance screen to buy now, I only changed the development board under the/etc/setqtenv under two environment variables: TSLIB_TSDEVICE and QWS_MOUSE_PROTO, the two corresponding event0 such event2 (event2 is my capacitance screen corresponding device node), save after restart on own Qt interface can be touch screen operation, but the Qt program after uploaded to the development board can only display interface, not for touch screen operation, Ctrl + C after returning to her own Qt interface interrupt program cannot bring Qt interface for touch screen operation,

Do still need to change the environment variables, or else change somewhere else? How can I solve this problem?

CodePudding user response:

Export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event2

CodePudding user response:

Hello, I added you said under setqtenv environment variable, but still can't for touch screen operation after running the program, you can help me solve this problem? Bothering me for a long time, please!
  •  Tags:  
  • Qt
  • Related