Hi,
I'm using Qt Designer for the layout where i have a graphicsLayoutWidget. I add two viewBoxes by:
self.viewBoxL = self.graphicsLayoutWidget.addViewBox(lockAspect=1.0,invertY=True, name='l')
self.viewBoxR = self.graphicsLayoutWidget.addViewBox(lockAspect=1.0,invertY=True, name='r')
self.imgItemL = pg.ImageItem(border='w')
self.imgItemR = pg.ImageItem(border='w')
self.viewBoxL.addItem(self.imgItemL)
self.viewBoxR.addItem(self.imgItemR)
self.viewBoxL.setXLink(self.viewBoxR)
self.viewBoxL.setYLink(self.viewBoxR)
self.imgItemL.setImage(imgL)
self.imgItemR.setImage(imgR)
which show two pictures of the same thing, but with different colors (I'm loading two different images with the same size). Now I want to add a ROI item. It seems that it is not possible to add this ROI item to both views, so I made two items and added them to viewBoxL and viewBoxR. Is it possible to synchronize these two items, so that every change I make in viewBoxL appears in viewBoxR?
Thanks for your help!
Hauke