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. Just unminimized window not receiving mouseMoveEvent on OSX, unlike Linux?
Forum Updated to NodeBB v4.3 + New Features

Just unminimized window not receiving mouseMoveEvent on OSX, unlike Linux?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 714 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
    bootchk
    wrote on last edited by
    #1

    My app calls self.setMouseTracking(True) on a QGraphicsView (which is in a QMainWindow, and which has a QGraphicsScene.) On OSX, after a user unminimizes the window, no mouseMoveEvents are received (in the QGraphicsScene) until the user clicks the mouse in the window. This is unlike the behavior on Linux.

    I have read about the 'focus follows mouse' issue on OSX, which says that on OSX a window does not receive keyboard focus or get raised to the top just because a mouse moves across a visible portion of the window. But shouldn't a window that has just been unminimized have keyboard focus and be on top (foreground?) and receive mouse move events (mouse focus?) on all platforms?

    (I am not using the hover capabilities of Qt, but implementing my own hover. I hope this is irrelevant.)

    I don't understand and don't know how to proceed, except to start hacking, such as calling setActiveWindow or call setMouseTracking on an exposeEvent or on the focusChanged signal, even though I don't think it should be necessary?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bootchk
      wrote on last edited by
      #2

      A relevant post? http://qt-project.org/forums/viewthread/26276 But that bug doesn't mention unminimizing, and in my case, mouse tracking works when the app starts in OSX, but doesn't work after unminimizing until a mouse click.

      That is, might be a bug that has been fixed starting with Qt 5.1?

      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