A simple library that allows to grab(clip) a mouse pointer by a QWidget.
In my projects I often need to grab a mouse pointer by some Window in a cross platform manner.
I spend some time to get it on Linux and realized that it might be helpful for other peoples.
Please, take a look on a demo:
You can simply clone this project and build it for your needs.
What things you need to install the software and how to install them. All you need is
Windows/Linux OS
CMake >= 3.5
Compiler with C++17 support
Qt5.X
mkdir build
cd build
cmake ..
make -j N
Please see the test to get how it can be used.
- Add CI for Windows.
- Add CI for Linux.
- Add MAC OS Support.
- Create a packages for various systems.
- Extend library for QWindow.
- Extend library for window id only, i.e. without Qt Widget/Window.