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. Event Filter receiving unexpected mouse move events
Qt 6.11 is out! See what's new in the release blog

Event Filter receiving unexpected mouse move events

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 3.4k 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.
  • B Offline
    B Offline
    bundickt
    wrote on last edited by
    #1

    My Application:
    2 windows: 1 full screen window that is always being shown while application is running. 1 popup window that will show and hide.

    The full screen window has an event filter installed on it to watch mouse events.

    The problem:
    If the mouse cursor's position in within the popup windows boundaries and the popup window is shown or hidden the full screen window receives mouse move events. The problem is I have no way to know if the event is due to the mouse actually being moved or the special case just described. Does anyone know how to tell the difference between these events.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rcari
      wrote on last edited by
      #2

      Did you use QWidget::grabMouse() on your fullscreen window at some point ?

      1 Reply Last reply
      0
      • Jose33J Offline
        Jose33J Offline
        Jose33
        wrote on last edited by
        #3
        This post is deleted!
        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