Cannot receive mouse event when using touch panel
-
OS: RPI 4 bullseye
QT version: 5.15.2
Touch panel: https://www.waveshare.com/wiki/5inch_DSI_LCDHello everybody, I'm a noob of QT.
I try to implement a function to let the image label be full screen by double click.- The function can work when using mouse.
- Using touch panel, the lable first state is normal size, and do "normal size->full screen-> normal size" is ok.
But after back to normal size, the application cannot receive the mouse event anymore.
Code:
https://github.com/mmarktsai/pyqt_photo_viewerAny help is very appreciate!
-
Hi and welcome to devnet,
You should avoid replacing objects method like that with a method from a different class. Use proper overloading to keep things clean. You should also avoid replacing self by something else. That is making your code confusing at best.
-
Hi and welcome to devnet,
You should avoid replacing objects method like that with a method from a different class. Use proper overloading to keep things clean. You should also avoid replacing self by something else. That is making your code confusing at best.
-
Does it show other signs of misbehavior ?
-
Does it affect only your application ?
-
What happens if you switch to another one and then come back to it ?
-
If I switch to another window and back to my window, my window still cannot work correctly.
https://drive.google.com/file/d/1H0MAkPo4HQB5sBBZ1_FhkshPtRSSD7Wf/view?usp=sharing
-
I would install a native event filter to see if there's something coming but not processed.