If this is a directory, apparently you want to use the following API with Qt 5:
bool QDir :: removeRecursively ()
unlike QFile . So you would write something like this:
QString location = "/path/to/app/Application.app"; QDir *rmDir = new QDir(location); rmDir->removeRecursively();
Note that I personally would not use the heap object just for this. A stack object will suffice in this simple case.
lpapp source share