QSettings
-
@Laky
Impossible to say if you show no code.Have you tried
qDebug() << settings.fileName();to see if path still valid on windows?
if you have something like
QSettings settings("/home/petra/misc/myapp.ini")
that could be the issue. -
-
@Laky
seems ok. It does work on linux ?How do you initialize mainSettings ?
-
-
Hi,
I don't know if is a problem but why do you use
/
as key prefix??
Windows writes settings in the Registry.Also I don't know why you use members objects for QSettings
-
Hi,
some suggestions:
- Set Application Name and Organization name only once (in the main.cpp);
- Create a
QSettings
instance when you need it; the destructor callsQSettings::sync()
and all unsaved data will be saved.