Hi there folks,
Just wondering how can copy a file from a given location (a given path), to another using Qt?
Sample code would be highly appreciated.
Thanks in advance,
Nefastious :confused:
Printable View
Hi there folks,
Just wondering how can copy a file from a given location (a given path), to another using Qt?
Sample code would be highly appreciated.
Thanks in advance,
Nefastious :confused:
Check QFile
Code:
file.copy(put your file name with directory where u want to place else it will save in current directory);
actually, there is static function QFile::copy. ;)