I’m attempting to keep the mouse inside the window when the app is fullscreen (on desktop platforms). What’s the best way to do that? I haven’t found a good solution aside from running a timer every few milliseconds to check the mouse position (via QCursor::pos), and then setting it if the position is out of bounds. I had thought I could use a mouse area but containsMouse always consumes the mouse event (e.g. can’t set mouse.accepted = false) so I can’t have a global mouse area on top of everything as it blocks containsMouse events from lower areas, which I need. Any ideas?
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.