PDA

View Full Version : Suppress window system menu



lumiss
19th August 2010, 08:00
I used the Qt::FramelessWindowHint to hide the window title and border, but the user can still display the system menu using Alt-Space (at least on X11). Is there any way to prevent that?

Thanks

Lykurg
19th August 2010, 08:14
You can try to catch that event with the keyPressEvent handler.

lumiss
19th August 2010, 08:46
You can try to catch that event with the keyPressEvent handler.

I am not sure it is possible to catch system keyboard shortcuts, but even if it is, can I be sure that the key combination will be the same on all window managers? Probably not. I would like a more robust solution.