What is grabKeyboard, grabMouse,... ?
-
Hi,
Just to be sure, did you miss these
"grabKeyBoard":http://qt-project.org/doc/qt-5/qwidget.html#grabKeyboard
"releaseKeyBoard":http://qt-project.org/doc/qt-5/qwidget.html#releaseKeyboard
"grabMouse":http://qt-project.org/doc/qt-5/qwidget.html#grabMouse
"releaseMouse":http://qt-project.org/doc/qt-5/qwidget.html#releaseMouse?
-
Call grabMouse on a widget and only that widget will receive mouse events (mouseMoves etc.), the same applies for grabKeyboard.
This means that the other widgets from your application will not get any mouse/keyboard event until you call the corresponding release function. They are only useful in a handful of cases.
The best way to see what it does is to create a little application containing some controls like QSlider, QSpinBox etc. and call the grabXXX functions on one of them.
-
Hi and welcome to devnet,
Did you try to implement a test application to check what happens ?