saverple.blogg.se

Qdir alternative
Qdir alternative










qdir alternative

The default path will be determined from QCoreApplication::applicationName() (otherwise qt_temp) and will be placed into the temporary path as returned by QDir::tempPath(). The path to the temporary directory can be found by calling path().Ī temporary directory will have some static part of the name and some part that is calculated to be unique. Do not use exists(), since a default-constructed QDir represents the current directory, which exists. It is very important to test that the temporary directory could be created, using isValid().

qdir alternative

The QTemporaryDir destructor removes the temporary directory // as it goes out of scope. dir.path() returns the unique directory path












Qdir alternative