From 6c9b910c5cbd7e6b08bf5c1d35c18d640adcf91e Mon Sep 17 00:00:00 2001 From: KIU Shueng Chuan Date: Fri, 15 Jan 2021 10:25:24 +0800 Subject: [PATCH] RemoteGraphicsView.py : include PySide6 in PySide family this is only sufficient to make remote rendering work. various errors still get triggered under PySide6 when we try remote plotting. --- pyqtgraph/widgets/RemoteGraphicsView.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyqtgraph/widgets/RemoteGraphicsView.py b/pyqtgraph/widgets/RemoteGraphicsView.py index 2e1d9cc3..bdf7400f 100644 --- a/pyqtgraph/widgets/RemoteGraphicsView.py +++ b/pyqtgraph/widgets/RemoteGraphicsView.py @@ -274,9 +274,8 @@ class Renderer(GraphicsView): self.shm.resize(size) ## render the scene directly to shared memory - if QT_LIB in ['PySide', 'PySide2']: + if QT_LIB.startswith('PySide'): ch = ctypes.c_char.from_buffer(self.shm, 0) - #ch = ctypes.c_char_p(address) self.img = QtGui.QImage(ch, self.width(), self.height(), QtGui.QImage.Format_ARGB32) else: address = ctypes.addressof(ctypes.c_char.from_buffer(self.shm, 0))