Added QSettings implementation.

Last opened file will be saved in QSettings and loaded next time.