Use QSaveFile to ensure configs will not be corrupted