The original code is not good. We do something like:
http://qt-project.org/wiki/Saving_Window_Size_State

I believe we should keep using QIniSettings. I also think that QIniSettings should use qBittorrent / qBittorrent by default so that we don't have to specify it every time.