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
6
void
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
}
example
void example()
[5]
Definition
doc_src_groups.cpp:7
qtbase
src
corelib
doc
snippets
code
src_corelib_io_qtemporarydir.cpp
Generated on
for Qt by
1.14.0