Hello,
when i try to copy a file, create qt additional a file like this "qt_temp.xxxxxx". That do qt only when "if (settings)" come true.
QFile file(QDir::home().
absolutePath() + "/settings.xml); if (settings) //e.g. settings = "c:\programs\myapp\settings.xml"
{
file.setFileName(settings);
}
if (file.exists() == false)
{
file.copy( ":/settings/settings.xml", file.fileName() );
}
QFile file(QDir::home().absolutePath() + "/settings.xml);
if (settings) //e.g. settings = "c:\programs\myapp\settings.xml"
{
file.setFileName(settings);
}
if (file.exists() == false)
{
file.copy( ":/settings/settings.xml", file.fileName() );
}
To copy to clipboard, switch view to plain text mode
Can anyone help me?
Thanks.
Bookmarks