<div class="gmail_quote">On Fri, Oct 30, 2009 at 2:50 PM, Antonio Valentino <span dir="ltr">&lt;<a href="mailto:antonio.valentino@tiscali.it">antonio.valentino@tiscali.it</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div class="h5"><br>
<br>
</div></div>Try to install the event filter in the scene<br>
<br>
self.gs.installEventFilter(self)<br>
<br>
and then<br>
<br>
        if event.type() == QEvent.GraphicsSceneMouseRelease:<br>
            self.p0 = event.buttonDownScenePos(Qt.LeftButton)<br>
            self.p1 = event.scenePos()<br>
<br>
<br>
This should work for every view attached to the scene.<br>
<br>
To hold the selection one could add a rectangle in a &quot;special&quot;<br>
GraphicsItemGroup.<br>
<div class="im"><br>
<br>
&gt; For the other readers, I&#39;m still interested in how to get to the<br>
&gt; QGraphicsView&#39;s rubberband selection data, as I think that would be<br>
&gt; the most elegant solution.<br>
<br>
<br>
</div>ciao<br>
<br>
--<br>
<font color="#888888">Antonio Valentino<br>
</font></blockquote></div><br>Hmm, this gives me an error:<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">AttributeError: buttonDownScenePos<br>
</blockquote><br clear="all"><br>-- <br>Alex Borghgraef<br>