touch screen QT6 GUI probelm -- solved setting XI2=0

  • bkt
  • bkt's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
30 Jan 2025 18:17 - 04 Feb 2025 15:54 #320168 by bkt
I have a GUI written with QT5. Than I upgrade it to QT6 because I would use new kernel 6.10 rt-14. Egalax multitouch panel work not so great. Or better:
  • If try to run a standalone GUI in QT6 all work perfect with egalax touch or with mouse
  • if try to run linuxcnc with Axis Gui all work perfect with egalax touch or with mouse
  • if try to run linuxcnc with Gui written in Qt6 with mouse work perfect, with touch it not grab every time press event but every time touch grab x-y on screen ... so can not perform push and release event everitime is needed with egalax ... but I can with mouse whitout issue.

    I'm not expert in x11 input and on linux mint 22 (but check with debian is the same) not uderstand where check for solve these issue ..... seems sometime make interferences with QT6 input event system when run Linuxcnc application only .... if run a test standalone GUI written in QT6 (mine test calculator app for example) and at same moment classic Axis gui with ethercat linuxcnc, linuxcnc work great with mouse and with egalax too .... same for my calculator app.

    But if run my QT6 GUI for linuxcnc & linuxcnc and at same moment my calculator app, calculator app work great with mouse and with touch, but GUI QT6 linuxcnc work great only with mouse.

    These make me very crazy .... not understand how to check for solve these strange issue .... what can make interferences of Linuxcnc into QT6 about evedev input system or other input library used from system? AN why only with touch screen??

    Really appreciate any help.
Last edit: 04 Feb 2025 15:54 by bkt.

Please Log in or Create an account to join the conversation.

  • bkt
  • bkt's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
04 Feb 2025 08:02 #320582 by bkt
Replied by bkt on topic egalax touch QT6 GUI question
insert in [DISPLAY] section of my .ini file these row ... the situation seems littel bit better .... but not perfect:

PROGRAM_PREFIX = QT_LOGGING_RULES="qt.qpa.input=true"

now try with bash script .....

Please Log in or Create an account to join the conversation.

  • bkt
  • bkt's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
04 Feb 2025 14:56 - 04 Feb 2025 15:53 #320609 by bkt
Replied by bkt on topic egalax touch QT6 GUI question
at least previous solution working not everytime .... these because Xinput v2 it seems .... seems these command helps QT_XCB_NO_XI2=0  .... so QT6 being obligate to use XInput2 ..... seems these solve the situation .... if you not find other mine post on these thread ... these issue is solved.

Precisely better insert the command in main.ccp ... qputenv("QT_XCB_NO_XI2", "0") .... previous of QApplication macro .... (solved)

regards
Last edit: 04 Feb 2025 15:53 by bkt.

Please Log in or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum