[Qt-interest] Signals emitted by QSceneView
Sean Harmer
sean.harmer at maps-technology.com
Fri Nov 26 17:57:41 CET 2010
Hi,
On Friday 26 November 2010 16:49:14 Oliver.Knoll at comit.ch wrote:
> On 2010-11-26 Brian Brian McKinnon wrote:
> > ... I've been trying to overload the leaveEvent,
> > mouseLeaveEvent, ... well pretty much any leave event in either the
> > view, scene, or item that I can find with no luck. Is there a
> > notification that gets set out when a mouse leaves a view while dragging
> > an item in the scene?
>
> I am just doing my first steps with QGraphicsScene/View, hence I do not
> have much experience with that.
>
> In my case I observed that the QGraphicsScene "bounding box" seems to be
> enlarged once I move an item out "into the invisible". I notice this
> because scrollbars appear and the scrollable area becomes bigger.
>
> I don't think QGraphicsView/Scene would emit a "mouse leave" event while
> dragging, because enlarging the area seems to be the intended action.
Not sure if it helps here, but you can prevent that behaviour by explicitly
setting a sceneRect on your scene.
Sean
More information about the Qt-interest-old
mailing list