PythonQt.QtCore.QTemporaryDir · declarations 001
Back to PythonQt.QtCore.QTemporaryDir
autoRemove
autoRemove() -> bool
X.autoRemove() -> bool
Supplemental documentation: Qt 5 reference:
bool QTemporaryDir::autoRemove() const
Returns true if the
QTemporaryDir is in auto remove
mode. Auto-remove mode will automatically delete the directory from disk upon
destruction. This makes it very easy to create your
QTemporaryDir object on the
stack, fill it with files, do something with the files, and finally on function return
it will automatically clean up after itself.
Auto-remove is on by default.
See also setAutoRemove() and remove().
Upstream PySide2 reference signatures (binding differences may apply):
autoRemove(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtemporarydir.html#autoRemove
errorString
errorString() -> str
X.errorString() -> str
Supplemental documentation: Qt 5 reference:
QString QTemporaryDir::errorString() const
If isValid() returns
false, this function returns the error string that explains why the creation of the
temporary directory failed. Otherwise, this function return an empty string.
This function was introduced in Qt 5.6.
Upstream PySide2 reference signatures (binding differences may apply):
errorString(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qtemporarydir.html#errorString
isValid
isValid() -> bool
X.isValid() -> bool
Supplemental documentation: Qt 5 reference:
bool QTemporaryDir::isValid() const
Returns true if the
QTemporaryDir was created
successfully.
Upstream PySide2 reference signatures (binding differences may apply):
isValid(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtemporarydir.html#isValid
path
path() -> str
X.path() -> str
Supplemental documentation: Qt 5 reference:
QString QTemporaryDir::path() const
Returns the path to the temporary directory. Empty if the QTemporaryDir could not be created.
Upstream PySide2 reference signatures (binding differences may apply):
path(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qtemporarydir.html#path
remove
remove() -> bool
X.remove() -> bool
Supplemental documentation: Qt 5 reference:
bool QTemporaryDir::remove()
Removes the temporary directory, including all its contents.
Returns true if removing was successful.
Upstream PySide2 reference signatures (binding differences may apply):
remove(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qtemporarydir.html#remove
setAutoRemove
setAutoRemove(b: bool) -> None
X.setAutoRemove(b)
Supplemental documentation: Qt 5 reference:
void QTemporaryDir::setAutoRemove(bool b)
Sets the QTemporaryDir into auto-remove mode if b is true.
Auto-remove is on by default.
See also autoRemove() and remove().
Upstream PySide2 reference signatures (binding differences may apply):
setAutoRemove(self, b: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qtemporarydir.html#setAutoRemove