Results 1 to 2 of 2

Thread: Drop Event Gets Disabled on adding MouseMoveEvent

  1. #1
    Join Date
    Jun 2013
    Posts
    31
    Thanks
    8
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Drop Event Gets Disabled on adding MouseMoveEvent

    I have a QGraphicsScene. I have a video running on the scene. On top of video I add a zooming window which is a QGraphicsItem. I drag and drop this window using drag events of QGraphicsScene. This works fine. I have to show the scene co ordinates everytime the mouse moves. For this I use a QGraphicsTextItem in MouseMoveEvent of graphics scene. The problem is when I write the MouseMoveEvent the drag and drop events stop responding.


    I am using mousemoveevent in QGraphicsItem to start the drag and the drop is implemented in dropEvent in QGraphicsScene. Is it because I try to implement mousemoveevent twice. If yes then what is the work around for this?

    Thank You

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Drop Event Gets Disabled on adding MouseMoveEvent

    Do you take care of passing the event on to the base class implementation?

    Cheers,
    _

Similar Threads

  1. adding butting to drop down Item of QComboBox
    By krystosan in forum Newbie
    Replies: 1
    Last Post: 5th November 2013, 09:23
  2. Adding click event to QFrame
    By FoleyX90 in forum Newbie
    Replies: 4
    Last Post: 17th August 2010, 17:40
  3. qtreewidget and drop event detection
    By eric_vi in forum Qt Programming
    Replies: 1
    Last Post: 19th February 2010, 11:20
  4. adding QGraphicsSvgItem to scene, drag and drop?
    By abhilashm86 in forum Qt Programming
    Replies: 0
    Last Post: 5th August 2009, 16:05
  5. mouseMoveEvent(QMouseEvent* event), event->button()
    By faraslacks in forum Qt Programming
    Replies: 1
    Last Post: 17th December 2008, 05:22

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.