[Qt-interest] Signals emitted by QSceneView
Brian McKinnon
bpmckinnon.qt at gmail.com
Mon Nov 29 16:16:26 CET 2010
I set the sceneRect and now the scroll bars don't come up, but I'm still not
getting any leave event. It looks like I may just need to initiate a drag
event when I click on an item. If that is the case I can probably still
move the object around the scene using the drag event slots to move the
item... but this seems sort of hacky. Does anyone know if any signal is
sent when a selected object is moved out of the scene or view?
On Fri, Nov 26, 2010 at 12:57 PM, Sean Harmer <
sean.harmer at maps-technology.com> wrote:
> 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
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101129/1f994c4e/attachment.html
More information about the Qt-interest-old
mailing list