You need to call the underlying WinAPI. If you need special things of an operating system you have to use the underlying OS API (Windows => WinAPI, Linux ..., Mac OS ...)

As fatjuicymole has already been written, use:
Qt Code:
  1. #if defined(Q_WS_WIN)
  2. SystemParametersInfo(SPI_SETSCREENSAVERRUNNING, TRUE, &bOldState, 0);
  3. #endif
To copy to clipboard, switch view to plain text mode 

Best Regards
NoRulez