blob: adb8a7164f086840aec49663a175ceb10f1c432c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{
//! [0]
// Within a function/method...
QTemporaryFile file;
if (file.open()) {
// file.fileName() returns the unique file name
}
// The QTemporaryFile destructor removes the temporary file
// as it goes out of scope.
//! [0]
}
|