update on qt warnings

Mel Tearle mel.tearle at gmail.com
Sun May 29 03:45:33 BST 2022


Hi,
I posted problem I was having in 6.2 late October 2021. It’s still in 6.3:

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 window

However I think I know why. I was recently contacted by someone running PySide6.3
who was having the same problem on an M1 Mac.

I tested both PyQt6.3 and PySide6.3 and had the same result.  For some reason 
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 PyQt 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 PyQt6.  It may also have to do with running a 64bit Mac  OS
as both warnings have appeared in Big Sur and Monterey.

Hope this get it fixed, it’s really annoying.

Here’s a little test you can run.

Mel Tearle

import sys
from PyQt6.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())




More information about the PyQt mailing list