Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Mouse event for when hovering over something
Qt 6.11 is out! See what's new in the release blog

Mouse event for when hovering over something

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 810 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mark_AM
    wrote on last edited by
    #1

    Is there a mouse event that can be triggers when the mouse is moving and hovering over something? I have mouseMoveEvent() on but it only seems to work when the mouse is clicked down.

    raven-worxR 1 Reply Last reply
    0
    • M Mark_AM

      Is there a mouse event that can be triggers when the mouse is moving and hovering over something? I have mouseMoveEvent() on but it only seems to work when the mouse is clicked down.

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by raven-worx
      #2

      @Mark_AM
      hover events. Must be handled with QWidget::event()
      Or use QWidget::setMouseTracking(true), then you will receive mouse events even when no button is pressed.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      2
      • M Offline
        M Offline
        Mark_AM
        wrote on last edited by
        #3

        Thank you!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved