这两个问题其实很好解决,只要在你的代码中试一下就知道了
也可以看一下文档
QSettings::QSettings(const QString & fileName, Format format, QObject * parent = 0)
Constructs a QSettings object for accessing the settings stored in the file called fileName, with parent parent. If the file doesn't already exist, it is created.