Python Forum
[PyQt] Wonky Touch Events
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] Wonky Touch Events
#1
Hey everyone,

I have a PyQt application that runs great on Windows (and another version that runs on Linux). I'm working on a Windows 10 touch-screen version of it, and I'm finding that the touch events are really wonky. When I touch the screen and hold it, it triggers press & release events in rapid succession. Sometimes multiple times. To capture the touch begin/end events, I used the "event filter" code in this link: https://gist.github.com/stevenliebregt/8...650a11914f

I don't think it's the PC or the OS -- I don't see this behavior in other applications, just my PyQt app. I'm not sure where to go from here or how to go about debugging this. I've scoured the googles and nothing comes up.

Nevermind .. I think it's something other than just python. I'm seeing a similar problem with a .NET application.
Reply
#2
Okay without actually looking at it what you are describing is the same thing as someone multi-clicking a button over and over again

You actually have to code against that if that is not something you want to have happen by using a flag in conjunction with a timer perhaps all depending on the end result you are attempting to achieve
Reply
#3
As Denni said override controls also I would use kivy if you req touch controls, they implemented whole starting kit
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Looking for good GUI Framework for Touch Devices matt_the_hall 2 2,197 Feb-02-2021, 03:36 AM
Last Post: matt_the_hall
  [PyQt] touch events is not generating shridhara 0 3,376 Apr-23-2018, 11:39 AM
Last Post: shridhara
  Tkinter touch screen button click ashtona 2 9,644 Apr-13-2018, 11:46 AM
Last Post: buran
  [Tkinter] problem with button events Lubik_ 4 9,788 Dec-01-2017, 08:47 PM
Last Post: Windspar
  PyQt5 events alekssandrap 1 7,593 Jan-31-2017, 03:53 PM
Last Post: Larz60+
  PyQt4 Touch events alekssandrap 2 7,158 Jan-28-2017, 01:05 PM
Last Post: alekssandrap

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020