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
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 ?
-
wrote on 4 Oct 2015, 14:57 last edited by Laky 10 Apr 2015, 14:59
-
wrote on 4 Oct 2015, 14:59 last edited by mcosta 10 Apr 2015, 15:02
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,
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
-
wrote on 4 Oct 2015, 15:21 last edited by
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.