I am using Qt 5.15.1.
If I have a file in in my Qt app's qrc file, is it possible to save the file into application's directory so that I can use that file as a normal file on the file system?
QFile my_file(":/data/file.txt");
QDir my_app_dir(QCoreApplication::applicationDirPath());
in above code, how can I save my_file into my_app_dir?
Environment:
MacOS Catalina
Qt: Commercial version 5.15.1
You just have to copy the content: