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.
This commit is contained in:
KIU Shueng Chuan 2021-01-15 10:25:24 +08:00
parent 4f619bbb4c
commit 6c9b910c5c

View File

@ -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))