Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.3.0
-
None
-
Mac Laptops, Intel and M1, Big Sur and Monterey
Description
I posted problem I was having in 6.2 late October 2021. It's still in 6.3: I re-posted this to the pyside folks a few days back and they said post it here.
Recently I was contacted by someone running PySide6.3 who was also having the same problem on an M1 Mac.
qt.pointer.dispatch: delivering touch release to same window QWindow(0x0) not
QWidgetWindow(0x7f9c2b00b700, name="PathMakerClassWindow")qt.pointer.dispatch: skipping QEventPoint(id=1 ts=0 pos=0,0 scn=684.702,453.424
gbl=684.702,453.424 Released ellipse=(1x1 ∡ 0) vel=0,0 press=-684.702,-453.424
last=-684.702,-453.424 Δ 684.702,453.424) : no target windowI tested both PyQt6.3 and PySide6.3 and had the same result. A few days later I decided to retest but this time using a mouse. Right - I don't use a mouse, I have a laptop, why would I ever use a mouse? The result, no warnings, however even with the mouse plugged in you can still get a warning if you use the touchpad.
Almost every app I've written has QGraphicsView in it except one. When I tested that app - mouse vs. touchpad, no error. The problem is in how QGraphicsView treats a Mac touchpad in PySide6. It may also have to do with running a 64bit Mac OS as both warnings have appeared in Big Sur and Monterey.
There's no C++ code except in the binaries when I pip installed PySide6 - it's all PySide6. See my code example.
Hope this gets somewhere,
Mel Tearle
import sys
from PySide6.QtWidgets import *
class Window(QWidget):
def _init_(self):
super()._init_()
self.graphicsView = QGraphicsView(self)
# self.graphicsView.setMouseTracking(True) ## doesn't matter
layout = QVBoxLayout(self)
layout.addWidget(self.graphicsView)
self.resize(400, 400)
self.show()
if _name_ == '_main_':
app = QApplication(sys.argv)
warn = Window()
sys.exit(app.exec())