Details
Description
QFile::moveToTrash(path) works with absolute path but not with relative path on Windows.
#include <QDebug> #include <QFile> int main() { QString fn = "aaa.txt"; { QFile f(fn); f.open(QFile::WriteOnly); } qDebug() << QFile::moveToTrash(fn); }
This outputs false but when absolute path is used, the same code outputs true.