Re: [pyqtgraph] Modifying mouse click and drag events in ImageItem - signals.connect versus functions

2018-08-20 Thread Talia Weiss
Sorry it took so long to get back to you. Thanks this makes a lot of sense! What helped the most was the hoverEvent example you provided - event.acceptClicks and event.acceptDrags basically determines whether handling of the event happens in this level (i.e. the subclass of ImageItem) versus t

Re: [pyqtgraph] Modifying mouse click and drag events in ImageItem - signals.connect versus functions

2018-05-17 Thread Luke Campagnola
Regarding the use of scene events: you just need to map the position of the event to the coordinate system of your ImageItem, like: image_pos = image_item.mapFromScene(event.scenePos()) If this makes no sense at all, then I recommend reading about Qt GraphicsView and how it handles coordinate