Hello the list.<div><br></div><div>I have been working with QGis and python and I am currently trying to implement my own subclass of QgsMapCanvasItem in python to display mobile positions over the map. The mobile and "over the map" part work already.</div>
<div><br></div><div>I would also like those items to be somehow "interactive", and I am therefore trying to get the various mouse events that one can normally expect from a QGraphicsItem. I implemented the folowing methods: </div>
<div>def mouseReleaseEvent(self, event):</div><div>def mousePressEvent(self, event):</div><div>def acceptedMouseEvents(self):</div><div><br></div><div>the boundingRect method has also been implemented and tested with a few item.isUnderMouse() tries in the python console.</div>
<div><br></div><div>The mouse events do not seem to be dispatched to my items and I don't understand why.</div><div><br></div><div>Maybe some of you already have the answer to this question.</div><div>The source code for my items is included.</div>
<div><br></div><div>Thank you for your help with this matter.</div><div><br></div><div>Florian</div>