Results 1 to 3 of 3

Thread: Highlight PushButton on mouseMove

  1. #1
    Join Date
    Oct 2010
    Posts
    13
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Highlight PushButton on mouseMove

    Hi All,

    I am supposed to highlight all buttons when a mouse movement happens over it. The mouse movement needs to be handled in the enterEvent function which I have to override. But how can I get to know that the movement has happened over a particular widget. Can anyone please brief me with an example.

    Regards.
    Siva

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Highlight PushButton on mouseMove

    the event handler will be called for a widget that the mouse moved over it.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Sep 2010
    Location
    Russia, Moscow
    Posts
    15
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Highlight PushButton on mouseMove

    how about setting event filter on buttons and catch events?

Similar Threads

  1. dropEvent doesn't happen without mousemove
    By Dimon in forum Qt Programming
    Replies: 0
    Last Post: 6th October 2009, 16:49
  2. Problem in MouseMove Event
    By Gamalof in forum Qt Programming
    Replies: 4
    Last Post: 17th June 2008, 20:24
  3. mouseMove Event
    By fruzzo in forum Qt Programming
    Replies: 1
    Last Post: 3rd March 2008, 11:48
  4. Replies: 2
    Last Post: 8th August 2006, 15:09
  5. Replies: 6
    Last Post: 3rd February 2006, 09:48

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.