Results 1 to 4 of 4

Thread: mouseMoveEvent problem in QGraphicsView/QGraphicsScene

  1. #1
    Join Date
    May 2009
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default mouseMoveEvent problem in QGraphicsView/QGraphicsScene

    I'm having an issue with QGraphicsScene (on Linux) not catching mouse move events when the mouse button is pressed. Instead, it appears to be sending the event to the window manager and just dragging the entire window, instead of allowing the QGraphicsScene to process the event. I reimplemented the QGraphicsScene::event() function to print out the name of the event that happens to the console, and it doesn't even seem to be seeing it. It will catch the event where the mouse button is pressed, but then move events go to the window manager.

    Any idea why this might happen?

    Thanks,
    Bart

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: mouseMoveEvent problem in QGraphicsView/QGraphicsScene

    Did you install an event filter?

  3. #3
    Join Date
    May 2009
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: mouseMoveEvent problem in QGraphicsView/QGraphicsScene

    No. Do I need to?

  4. #4
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: mouseMoveEvent problem in QGraphicsView/QGraphicsScene

    Try installing one on the scene and see if you can get the mouse move events.

Similar Threads

  1. Problem in MouseMoveEvent
    By aamer4yu in forum Qt Programming
    Replies: 18
    Last Post: 3rd December 2015, 11:20
  2. Replies: 5
    Last Post: 31st December 2010, 11:49
  3. weird problem in QGraphicsView / QGraphicsScene
    By Mrdata in forum Qt Programming
    Replies: 3
    Last Post: 24th November 2009, 19:26
  4. mouseMoveEvent problem
    By yagabey in forum Qt Programming
    Replies: 9
    Last Post: 28th November 2008, 12:51
  5. QGraphicsScene::mouseMoveEvent Question
    By harakiri in forum Qt Programming
    Replies: 3
    Last Post: 3rd March 2008, 14:54

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.