Merge pull request #1555 from pijyoi/pyqt6_remote_mouse
PyQt6 6.0.1 QEvent.Type needs to be explicitly deserialized
This commit is contained in:
commit
6d3de52773
@ -250,8 +250,8 @@ class Renderer(GraphicsView):
|
||||
|
||||
def deserialize_mouse_event(self, mouse_event):
|
||||
typ, pos, gpos, btn, btns, mods = mouse_event
|
||||
if QT_LIB != 'PyQt6':
|
||||
typ = QtCore.QEvent.Type(typ)
|
||||
if QT_LIB != 'PyQt6':
|
||||
btn = QtCore.Qt.MouseButton(btn)
|
||||
btns = QtCore.Qt.MouseButtons(btns)
|
||||
mods = QtCore.Qt.KeyboardModifiers(mods)
|
||||
|
Loading…
Reference in New Issue
Block a user