Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
src_corelib_io_qtemporarydir.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4#include <QTemporaryDir>
5
6void example()
7{
8//! [0]
9 // Within a function/method...
10
11 QTemporaryDir dir;
12 if (dir.isValid()) {
13 // dir.path() returns the unique directory path
14 }
15
16 // The QTemporaryDir destructor removes the temporary directory
17 // as it goes out of scope.
18//! [0]
19}
void example()
[5]