use QgsProject instead of QSettings