The good new (for me) is that I need this on windows. The bad news is that the official verdict is that there is no way to do this in qt (if the caps lock was turned on before the app was started).

I am going to have to rely on:

bool capsLogon = (bool)GetAsyncKeyState(VK_CAPITAL);