Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
{
6
// Within a function/method...
7
8
QTemporaryDir
dir
;
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
}
dir
QString dir
[11]
Definition
src_gui_dialogs_qfiledialog.cpp:79
qtbase
src
corelib
doc
snippets
code
src_corelib_io_qtemporarydir.cpp
Generated by
1.10.0