[Qt-interest] copy of windows registry file

navid navid n_nnavid at yahoo.com
Sat Dec 5 12:09:09 CET 2009


Hi

how can I prepare  a copy from windows registry file?
the following code does not work:

[CODE]
QSettings _qsetsettings("ORG_NAME", "APP_NAME");
...
bool _bres = QFile::copy(_qsetsettings.fileName(), _qsname);
qDebug()<<"source: "<<_qsetsettings.fileName()
        <<" dest: "<<_qsname 
        <<" Res: "<<_bres;
[/CODE]


Application output:
source:  "\HKEY_CURRENT_USER\Software\ORG_NAME\APP_NAME"  dest:  "G:/qt/prj/debug/settings.txt"  Res:  false 

regards
n. navid


      



More information about the Qt-interest-old mailing list