Skip to content
  • 0 Votes
    3 Posts
    2k Views
    CybeXC

    @Chris-Kawa

    It would actually just make things easier.

    I would like to generalize this procedure to e.g.

    QFile::copy(":/my/file", r.OriginalFileName);

    Here Qresource::OriginalFileName() returns the original file name e.g. somefile.txt

    Now, I am required to (for each file):

    QString newLocation = QString(tempdir + tempdir.seperator() + QString("myNewFileName.txt")); QFile::copy(":/my/file", newLocation);

    It just seems tedious and not very efficient.

    But thanks for clearing it up though,

    *grabs coffee