Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!


OverviewFelgo 2 Support (Qt 5) › How to lock mouse inside window when full screen?


Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #8859


    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?


    Felgo Team


    I don’t know how that could be solved unfortunately. You could try to ask this question also on the Qt support forums, or on the Stackoverflow Qt Section, and maybe report it back here if you find a solution.

    Cheers, Chris

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.