Results 1 to 4 of 4

Thread: [Solved] QEvent::MouseMove problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2012
    Posts
    18
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    2

    Default [Solved] QEvent::MouseMove problem

    I have an OpenGL 3.1 context drawing inside a generic QWidget promoted to a QGLWidget (not a QGraphicsView, I think). I need to find the mouse cursor position every time the mouse moves, so I can redraw some objects with updated coordinates. I've implemented the mouseMoveEvent event handler, but the problem is that it only registers if the mouse button is held down (clicking and dragging). This is not what I need; I have a seperate function called on mouse click, and I don't want it called just to detect the mouse moving.

    So my question is this: is there any way I can get an event for when the mouse is moved inside my Widget, even if the mouse button is not being held down?
    Last edited by fiodis; 16th November 2012 at 21:15.

Similar Threads

  1. QEvent::KeyPress problem, when will this event appear?
    By batileon in forum Qt Programming
    Replies: 11
    Last Post: 17th June 2011, 05:23
  2. QEvent problem
    By batileon in forum Qt Programming
    Replies: 3
    Last Post: 4th May 2009, 12:23
  3. Problem in MouseMove Event
    By Gamalof in forum Qt Programming
    Replies: 4
    Last Post: 17th June 2008, 20:24
  4. qevent problem
    By amulya in forum Qt Programming
    Replies: 2
    Last Post: 13th October 2006, 11:51
  5. Replies: 2
    Last Post: 8th August 2006, 15:09

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
  •  
Qt is a trademark of The Qt Company.