Results 1 to 2 of 2

Thread: mouse moving don't produce mouse events

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    55
    Thanks
    13
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default mouse moving don't produce mouse events

    Below is the qt assistant description:

    Mouse move events will occur only when a mouse button is pressed down, unless mouse tracking has been enabled with QWidget::setMouseTracking().
    Howerer, I can't receive any mouse event if I don't press down a mouse button.And I have
    called QWidget::setMouseTracking(TRUE). What's wrong here?

    Thanks you!

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: mouse moving don't produce mouse events

    Is it anyhow possible that there would be a typo in the function declaration?
    Make sure it matches this signature:
    Qt Code:
    1. virtual void mouseMoveEvent(QMouseEvent* e);
    To copy to clipboard, switch view to plain text mode 
    Also, make sure that the base class marks it as virtual if it's overriding it too..
    J-P Nurmi

Similar Threads

  1. Replies: 2
    Last Post: 24th July 2006, 19:36
  2. QStackerWidget and mouse events
    By high_flyer in forum Qt Programming
    Replies: 3
    Last Post: 25th April 2006, 20:25
  3. Forwarding mouse events to another widget.
    By yogeshm02 in forum Qt Programming
    Replies: 8
    Last Post: 28th February 2006, 14:25
  4. QPushButton mouse events
    By Twey in forum Newbie
    Replies: 5
    Last Post: 15th January 2006, 17:41

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.