Skip to content

PythonQt.QtCore.QFileDevice

QFileDevice

PythonQtInstanceWrapper object

Native bases: PythonQtInstanceWrapper

Supplemental documentation: Qt 5 reference:

Detailed Description

QFileDevice is the base class for I/O devices that can read and write text and binary files and resources. QFile offers the main functionality, QFileDevice serves as a base class for sharing functionality with other file devices such as QTemporaryFile, by providing all the operations that can be done on files that have been opened by QFile or QTemporaryFile.

Source: https://doc.qt.io/archives/qt-5.15/qfiledevice.html

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
AbortError attribute Any (shared captured text)
Append attribute Any (shared captured text)
AutoCloseHandle attribute Any (shared captured text)
CopyError attribute Any (shared captured text)
DontCloseHandle attribute Any (shared captured text)
ExeGroup attribute Any (shared captured text)
ExeOther attribute Any (shared captured text)
ExeOwner attribute Any (shared captured text)
ExeUser attribute Any (shared captured text)
FatalError attribute Any (shared captured text)
FileError attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
FileHandleFlag attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
FileHandleFlags attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
MapPrivateOption attribute Any (shared captured text)
MemoryMapFlags attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
NoError attribute Any (shared captured text)
NoOptions attribute Any (shared captured text)
NotOpen attribute Any (shared captured text)
OpenError attribute Any (shared captured text)
OpenMode attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
OpenModeFlag attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
Permission attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
Permissions attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
PermissionsError attribute Any (shared captured text)
PositionError attribute Any (shared captured text)
ReadError attribute Any (shared captured text)
ReadGroup attribute Any (shared captured text)
ReadOnly attribute Any (shared captured text)
ReadOther attribute Any (shared captured text)
ReadOwner attribute Any (shared captured text)
ReadUser attribute Any (shared captured text)
ReadWrite attribute Any (shared captured text)
RemoveError attribute Any (shared captured text)
RenameError attribute Any (shared captured text)
ResizeError attribute Any (shared captured text)
ResourceError attribute Any (shared captured text)
Text attribute Any (shared captured text)
TimeOutError attribute Any (shared captured text)
Truncate attribute Any (shared captured text)
Unbuffered attribute Any (shared captured text)
UnspecifiedError attribute Any (shared captured text)
WriteError attribute Any (shared captured text)
WriteGroup attribute Any (shared captured text)
WriteOnly attribute Any (shared captured text)
WriteOther attribute Any (shared captured text)
WriteOwner attribute Any (shared captured text)
WriteUser attribute Any (shared captured text)
__init__ function (self, *args: Any, **kwargs: Any) -> None Native constructor; consult class documentation for supported overloads. (shared captured text)
aboutToClose function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtCore.QFileDevice.aboutToClose; argument details are not documented.
atEnd function (self) -> bool X.atEnd() -> bool
blockSignals function (self, b: Any) -> bool X.blockSignals(b) -> bool (shared captured text)
bytesAvailable function (self) -> int X.bytesAvailable() -> int (shared captured text)
bytesToWrite function (self) -> int X.bytesToWrite() -> int (shared captured text)
bytesWritten function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtCore.QFileDevice.bytesWritten; argument details are not documented.
canReadLine function (self) -> bool X.canReadLine() -> bool (shared captured text)
channelBytesWritten function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtCore.QFileDevice.channelBytesWritten; argument details are not documented.
channelReadyRead function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtCore.QFileDevice.channelReadyRead; argument details are not documented.
childEvent function (self, event: Any) -> Any (shared captured text)
children function (self) -> tuple X.children() -> tuple (shared captured text)
className function (self, *args: Any, **kwargs: Any) -> Any Return the classname of the object (shared captured text)
close function (self) -> None Reimplements: [QIODevice::close](https://doc.qt.io/archives/qt-5.15/qiodevice.html#close)().
connect function (self, signal: Any, receiver: Any, slot: Any, type: Any) -> bool X.connect(signal, receiver, slot, type) -> bool (shared captured text)
customEvent function (self, event: Any) -> Any (shared captured text)
delete function (self, *args: Any, **kwargs: Any) -> Any Deletes the C++ object (at your own risk, my friend!) (shared captured text)
deleteLater function (self) -> Any (shared captured text)
destroyed function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtCore.QFileDevice.destroyed; argument details are not documented.
disconnect function (self, signal: Any, receiver: Any, slot: Any) -> bool X.disconnect(signal, receiver, slot) -> bool (shared captured text)
dumpObjectInfo function (self) -> Any (shared captured text)
dumpObjectTree function (self) -> Any (shared captured text)
dynamicPropertyNames function (self) -> Any (shared captured text)
error function (self) -> Any Returns the file error status.
errorString function (self) -> str X.errorString() -> str (shared captured text)
event function (self, event: Any) -> bool X.event(event) -> bool (shared captured text)
eventFilter function (self, watched: Any, event: Any) -> bool X.eventFilter(watched, event) -> bool (shared captured text)
fileName function (self) -> str X.fileName() -> str
findChild function (self, type: Any, name: Any) -> Any X.findChild(type, name) -> PythonQt.private.QObject (shared captured text)
findChildren function (self, type: Any, name: Any) -> tuple X.findChildren(type, name) -> tuple (shared captured text)
flush function (self) -> bool X.flush() -> bool
getChar function (self, c: Any) -> bool X.getChar(c) -> bool (shared captured text)
handle function (self) -> int X.handle() -> int
help function (self, *args: Any, **kwargs: Any) -> Any Shows the help of available methods for this class (shared captured text)
inherits function (self, *args: Any, **kwargs: Any) -> Any Returns if the class inherits or is of given type name (shared captured text)
installEventFilter function (self, filterObj: Any) -> Any (shared captured text)
isOpen function (self) -> bool X.isOpen() -> bool (shared captured text)
isReadable function (self) -> bool X.isReadable() -> bool (shared captured text)
isSequential function (self) -> bool X.isSequential() -> bool
isSignalConnected function (self, signal: Any) -> bool X.isSignalConnected(signal) -> bool (shared captured text)
isTextModeEnabled function (self) -> bool X.isTextModeEnabled() -> bool (shared captured text)
isWidgetType function (self) -> bool X.isWidgetType() -> bool (shared captured text)
isWindowType function (self) -> bool X.isWindowType() -> bool (shared captured text)
isWritable function (self) -> bool X.isWritable() -> bool (shared captured text)
killTimer function (self, id: Any) -> Any (shared captured text)
map function (self, offset: int, size: int, arg2: flags) -> str X.map(offset, size, flags) -> int
metaObject function (self) -> Any X.metaObject() -> PythonQt.QtCore.QMetaObject (shared captured text)
moveToThread function (self, thread: Any) -> Any (shared captured text)
objectName attribute Any (shared captured text)
objectNameChanged function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtCore.QFileDevice.objectNameChanged; argument details are not documented.
open function (self, mode: Any) -> bool X.open(mode) -> bool
openMode function (self) -> Any (shared captured text)
parent function (self) -> Any X.parent() -> PythonQt.private.QObject (shared captured text)
peek function (self, maxlen: Any) -> Any X.peek(maxlen) -> PythonQt.QtCore.QByteArray (shared captured text)
permissions function (self) -> Any Returns the complete OR-ed together combination of [QFile::Permission](https://doc.qt.io/archives/qt-5.15/qfiledevice.html#Permission-enum) for the file.
pos function (self) -> int X.pos() -> int
property function (self, name: Any) -> Any X.property(name) -> object (shared captured text)
putChar function (self, c: Any) -> bool X.putChar(c) -> bool (shared captured text)
read function (self, maxlen: Any) -> Any X.read(maxlen) -> PythonQt.QtCore.QByteArray (shared captured text)
readAll function (self) -> Any X.readAll() -> PythonQt.QtCore.QByteArray (shared captured text)
readChannelFinished function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtCore.QFileDevice.readChannelFinished; argument details are not documented.
readData function (self, data: str, maxlen: int) -> int X.readData(data, maxlen) -> int
readLine function (self, maxlen: Any) -> Any X.readLine(maxlen) -> PythonQt.QtCore.QByteArray (shared captured text)
readLineData function (self, data: str, maxlen: int) -> int X.readLineData(data, maxlen) -> int
readyRead function (self, *args: Any, **kwargs: Any) -> Any Native PythonQt.QtCore.QFileDevice.readyRead; argument details are not documented.
removeEventFilter function (self, obj: Any) -> Any (shared captured text)
reset function (self) -> bool X.reset() -> bool (shared captured text)
resize function (self, sz: int) -> bool X.resize(sz) -> bool
seek function (self, offset: int) -> bool X.seek(offset) -> bool
sender function (self) -> Any X.sender() -> PythonQt.private.QObject (shared captured text)
senderSignalIndex function (self) -> int X.senderSignalIndex() -> int (shared captured text)
setErrorString function (self, errorString: Any) -> Any (shared captured text)
setObjectName function (self, name: Any) -> Any (shared captured text)
setOpenMode function (self, openMode: Any) -> Any (shared captured text)
setParent function (self, parent: Any) -> Any (shared captured text)
setPermissions function (self, permissionSpec: Any) -> bool X.setPermissions(permissionSpec) -> bool
setProperty function (self, name: Any, value: Any) -> bool X.setProperty(name, value) -> bool (shared captured text)
setTextModeEnabled function (self, enabled: Any) -> Any (shared captured text)
signalsBlocked function (self) -> bool X.signalsBlocked() -> bool (shared captured text)
size function (self) -> int X.size() -> int
startTimer function (self, interval: Any, timerType: Any) -> int X.startTimer(interval, timerType) -> int (shared captured text)
thread function (self) -> Any (shared captured text)
timerEvent function (self, event: Any) -> Any (shared captured text)
tr function (self, text: Any, ambig: Any, n: Any) -> str X.tr(text, ambig, n) -> str (shared captured text)
ungetChar function (self, c: Any) -> Any (shared captured text)
unmap function (self, address: str) -> bool X.unmap(address) -> bool
unsetError function (self) -> None Sets the file's error to [QFileDevice::NoError](https://doc.qt.io/archives/qt-5.15/qfiledevice.html#FileError-enum).
waitForBytesWritten function (self, msecs: Any) -> bool X.waitForBytesWritten(msecs) -> bool (shared captured text)
waitForReadyRead function (self, msecs: Any) -> bool X.waitForReadyRead(msecs) -> bool (shared captured text)
write function (self, data: Any) -> int X.write(data) -> int (shared captured text)
writeData function (self, data: str, len: int) -> int X.writeData(data, len) -> int