Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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{
6 // Within a function/method...
7
9 if (dir.isValid()) {
10 // dir.path() returns the unique directory path
11 }
12
13 // The QTemporaryDir destructor removes the temporary directory
14 // as it goes out of scope.
16}
\inmodule QtCore \reentrant
QString dir
[11]