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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support