Qt read and write configuration file