QSettings allows to store generic data... What if I want to save passwords?
In theory I need to encrypt them before saving, I also need to provide a encryption key and so on.

On Mac all passwords are saved in the keychain the user can access providing his system password. I have seen something similar in some Linux distribution too.
I was wondering whether Qt provides a generic way to do that, platform independent.