View Full Version : -nograb does not work - need something similar

13th December 2009, 16:37

for an application I really need the automatic mouse grab of Qt deactivated. What do I mean? Well, press on a QWidget, keep mouse button down and move the mouse around. It will not trigger MouseEnter and MouseMove Events on other widgets even if you leave the QWidget. That is a big problem for me. I need MouseEnter to be triggered in any case, even if the mouse button is pressed and Qt considers the gesture as a drag.

I read that the command line option -nograb (it's a debugging option) would help me. It would deactivate the automatic grab. But my QApplication does not interpret command line arguments. Probably I'm missing something. Can someone explain?

Many thanks for any answer.