What do your want to intercept the Ctrl+Alt+Del sequence for?
Ctrl+Alt+Del is designed to be handle by the system, and it doesn't sound a good idea to substitute yourself to the OS.
What do your want to intercept the Ctrl+Alt+Del sequence for?
Ctrl+Alt+Del is designed to be handle by the system, and it doesn't sound a good idea to substitute yourself to the OS.
Anyway, you can't do it at Qt level, you've got to use Win API.
Qt Code:
SystemParametersInfo(SPI_SETSCREENSAVERRUNNING, TRUE, &bOldState, 0);To copy to clipboard, switch view to plain text mode
Have look at :http://www.qtcentre.org/threads/2529...T-CTRL-DEL!!!! and http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx
Last edited by toutarrive; 24th March 2010 at 22:57.
Judging from his profile, it would seem that the OP wants it for Unix/X11, not Windows, in which case, comment out the line in /etc/inittab
Well spotted ... Should read profile more carefully.
Sorry for that.
If your app is running as a typical user (non-root), then you can't.
If it's SUID root then you can use reboot() api to modify ctrl-alt-del behavior.
Another alternative is to modify /etc/initab to check for the presence of a file or pipe before allowing the operation, and then control that file or pipe from your application.
Bookmarks