#include<QSettings> added after #include<QApplication