Hello,
How can I have alternative hard copy as text (beside registry & others) of QSettings. unfortunately, the following code does not work.
Code:
_qsetsettings.setObjectName("MyIniFileName"); _qsetsettings.sync();
regards,
n_navid
Printable View
Hello,
How can I have alternative hard copy as text (beside registry & others) of QSettings. unfortunately, the following code does not work.
Code:
_qsetsettings.setObjectName("MyIniFileName"); _qsetsettings.sync();
regards,
n_navid
thanks for reply,
but it returns false
it seems, it cant find path of _qsetsettings.fileName() .
Code:
qDebug()<<"source: "<<_qsetsettings.fileName()<<" dest: "<<_qspath+"/"+_qsname <<" Res: "<<_bres;
source: "\HKEY_CURRENT_USER\Software\ORG_NAME\APP_NAME " dest: "G:/qt/prj/debug/settings.txt" Res: false
Well, you didn't say you want to copy the settings from registry. Obviously there is no file name for it. You have to copy keys one by one yourself then.
excellent man! ;)Quote:
to copy keys one by one yourself