heyho i am fooling around with a PolyLineROI <http://www.pyqtgraph.org/documentation/graphicsItems/roi.html#pyqtgraph.PolyLineROI>. when i add it to my viewbox and start moving it (to the desired position) it won't update the positions of its handles. even if it is at its new position and i am starting to drag the handles, the position-change is relative to its handles' original position.
import pyqtgraph as pg def roiMove(): """Print the coordinates of the ROI.""" print(roi.getState()['points']) win = pg.GraphicsWindow() vb = win.addViewBox() # roi in triangle shape roi = pg.PolyLineROI([[1, 2], [1.5, 2], [1, 0]], closed=True, pen=pg.mkPen(color=(0, 201, 255, 255), width=3) ) # connect to printing function when moving something # NOTE: when dragging the whole ROI the positions won't be updated roi.sigRegionChanged.connect(roiMove) vb.addItem(roi) vb.setXRange(-5, 5) vb.setYRange(-5, 5) pg.QtGui.QApplication.exec_() i feel like i am close to the solution or just missed some important point... -- You received this message because you are subscribed to the Google Groups "pyqtgraph" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/36245b2a-d986-4157-ab70-f19151604e34%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.