Skip to content

PythonQt.QtCore.QFile · declarations 002

Back to PythonQt.QtCore.QFile

canReadLine

canReadLine() -> bool

X.canReadLine() -> bool

channelBytesWritten

channelBytesWritten(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QFile.channelBytesWritten; argument details are not documented.

channelReadyRead

channelReadyRead(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QFile.channelReadyRead; argument details are not documented.

close

close() -> Any

X.close()

copy

copy(fileName: Any, newName: str) -> bool

X.copy(fileName, newName) -> bool

Upstream PySide2 reference signatures (binding differences may apply):

copy(fileName: str, newName: str) -> bool
copy(self, newName: str) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qfile.html#copy

decodeName

decodeName(localFileName: Any) -> str

X.decodeName(localFileName) -> str

Supplemental documentation: Qt 5 reference:

[static] QString QFile::decodeName(const QByteArray \&localFileName)

This does the reverse of QFile::encodeName() using localFileName.

See also encodeName().

[static] QString QFile::decodeName(const char *localFileName)

This is an overloaded function.

Returns the Unicode version of the given localFileName. See encodeName() for details.

Upstream PySide2 reference signatures (binding differences may apply):

decodeName(localFileName: PySide2.QtCore.QByteArray) -> str
decodeName(localFileName: str) -> str

Source: https://doc.qt.io/archives/qt-5.15/qfile.html#decodeName

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QFile.destroyed; argument details are not documented.

encodeName

encodeName(fileName: str) -> Any

X.encodeName(fileName) -> PythonQt.QtCore.QByteArray

Supplemental documentation: Qt 5 reference:

[static] QByteArray QFile::encodeName(const QString \&fileName)

Converts fileName to the local 8-bit encoding determined by the user's locale. This is sufficient for file names that the user chooses. File names hard-coded into the application should only use 7-bit ASCII filename characters.

See also decodeName().

Upstream PySide2 reference signatures (binding differences may apply):

encodeName(fileName: str) -> PySide2.QtCore.QByteArray

Source: https://doc.qt.io/archives/qt-5.15/qfile.html#encodeName

error

error() -> Any

X.error()

exists

exists() -> bool

X.exists() -> bool

Upstream PySide2 reference signatures (binding differences may apply):

exists(fileName: str) -> bool
exists(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qfile.html#exists

fileName

fileName() -> str

X.fileName() -> str

Upstream PySide2 reference signatures (binding differences may apply):

fileName(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qfile.html#fileName

flush

flush() -> bool

X.flush() -> bool

handle

handle() -> int

X.handle() -> int

link(newName: str) -> bool

X.link(newName) -> bool

Upstream PySide2 reference signatures (binding differences may apply):

link(oldname: str, newName: str) -> bool
link(self, newName: str) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qfile.html#link

map

map(offset: Any, size: Any, arg2: flags) -> int

X.map(offset, size, flags) -> int

objectNameChanged

objectNameChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QFile.objectNameChanged; argument details are not documented.

open

open(arg0: flags) -> bool

X.open(flags) -> bool

Upstream PySide2 reference signatures (binding differences may apply):

open(self, fd: int, ioFlags: PySide2.QtCore.QIODevice.OpenMode, handleFlags: PySide2.QtCore.QFileDevice.FileHandleFlags=...) -> bool
open(self, flags: PySide2.QtCore.QIODevice.OpenMode) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qfile.html#open

permissions

permissions() -> Any

X.permissions()

Upstream PySide2 reference signatures (binding differences may apply):

permissions(filename: str) -> PySide2.QtCore.QFileDevice.Permissions
permissions(self) -> PySide2.QtCore.QFileDevice.Permissions

Source: https://doc.qt.io/archives/qt-5.15/qfile.html#permissions

pos

pos() -> int

X.pos() -> int

readChannelFinished

readChannelFinished(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QFile.readChannelFinished; argument details are not documented.

readData

readData(data: Any, maxlen: Any) -> int

X.readData(data, maxlen) -> int

readyRead

readyRead(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtCore.QFile.readyRead; argument details are not documented.

remove

remove() -> bool

X.remove() -> bool

Upstream PySide2 reference signatures (binding differences may apply):

remove(fileName: str) -> bool
remove(self) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qfile.html#remove

rename

rename(newName: str) -> bool

X.rename(newName) -> bool

Upstream PySide2 reference signatures (binding differences may apply):

rename(oldName: str, newName: str) -> bool
rename(self, newName: str) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qfile.html#rename

resize

resize(sz: int) -> bool

X.resize(sz) -> bool

Upstream PySide2 reference signatures (binding differences may apply):

resize(filename: str, sz: int) -> bool
resize(self, sz: int) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qfile.html#resize

seek

seek(offset: Any) -> bool

X.seek(offset) -> bool

setFileName

setFileName(name: str) -> None

X.setFileName(name)

Upstream PySide2 reference signatures (binding differences may apply):

setFileName(self, name: str) -> None

Source: https://doc.qt.io/archives/qt-5.15/qfile.html#setFileName

setPermissions

setPermissions(permissionSpec: Any) -> bool

X.setPermissions(permissionSpec) -> bool

Upstream PySide2 reference signatures (binding differences may apply):

setPermissions(filename: str, permissionSpec: PySide2.QtCore.QFileDevice.Permissions) -> bool
setPermissions(self, permissionSpec: PySide2.QtCore.QFileDevice.Permissions) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qfile.html#setPermissions

size

size() -> int

X.size() -> int

Upstream PySide2 reference signatures (binding differences may apply):

size(self) -> int

Source: https://doc.qt.io/archives/qt-5.15/qfile.html#size

symLinkTarget

symLinkTarget() -> str

X.symLinkTarget() -> str

Supplemental documentation: Qt 5 reference:

[static] QString QFile::symLinkTarget(const QString \&fileName)

Returns the absolute path of the file or directory referred to by the symlink (or shortcut on Windows) specified by fileName, or returns an empty string if the fileName does not correspond to a symbolic link.

This name may not represent an existing file; it is only a string. QFile::exists() returns true if the symlink points to an existing file.

This function was introduced in Qt 4.2.

QString QFile::symLinkTarget() const

This is an overloaded function.

Returns the absolute path of the file or directory a symlink (or shortcut on Windows) points to, or a an empty string if the object isn't a symbolic link.

This name may not represent an existing file; it is only a string. QFile::exists() returns true if the symlink points to an existing file.

This function was introduced in Qt 4.2.

See also fileName() and setFileName().

Upstream PySide2 reference signatures (binding differences may apply):

symLinkTarget(fileName: str) -> str
symLinkTarget(self) -> str

Source: https://doc.qt.io/archives/qt-5.15/qfile.html#symLinkTarget

unmap

unmap(address: Any) -> bool

X.unmap(address) -> bool

unsetError

unsetError() -> Any

X.unsetError()

writeData

writeData(data: Any, len: Any) -> int

X.writeData(data, len) -> int