Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide6.QtCore »

Classe « QFile »

Informations générales

Héritage

builtins.object
    Object
        QIODeviceBase
builtins.object
    Object
        QObject
            QIODevice
                QFileDevice
                    QFile

Définition

class QFile(QFileDevice):

Description [extrait de QFile.__doc__]

QFile(self) -> None
QFile(self, name: Union[str, bytes, os.PathLike]) -> None
QFile(self, name: Union[str, bytes, os.PathLike], parent: PySide6.QtCore.QObject) -> None
QFile(self, parent: PySide6.QtCore.QObject) -> None

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
AbortErrorPySide6.QtCore.QFileDevice.FileError.AbortError
AppendPySide6.QtCore.QIODeviceBase.OpenModeFlag.Append
AutoCloseHandlePySide6.QtCore.QFileDevice.FileHandleFlag.AutoCloseHandle
CopyErrorPySide6.QtCore.QFileDevice.FileError.CopyError
DontCloseHandlePySide6.QtCore.QFileDevice.FileHandleFlag.DontCloseHandle
ExeGroupPySide6.QtCore.QFileDevice.Permission.ExeGroup
ExeOtherPySide6.QtCore.QFileDevice.Permission.ExeOther
ExeOwnerPySide6.QtCore.QFileDevice.Permission.ExeOwner
ExeUserPySide6.QtCore.QFileDevice.Permission.ExeUser
ExistingOnlyPySide6.QtCore.QIODeviceBase.OpenModeFlag.ExistingOnly
FatalErrorPySide6.QtCore.QFileDevice.FileError.FatalError
FileAccessTimePySide6.QtCore.QFileDevice.FileTime.FileAccessTime
FileBirthTimePySide6.QtCore.QFileDevice.FileTime.FileBirthTime
FileMetadataChangeTimePySide6.QtCore.QFileDevice.FileTime.FileMetadataChangeTime
FileModificationTimePySide6.QtCore.QFileDevice.FileTime.FileModificationTime
MapPrivateOptionPySide6.QtCore.QFileDevice.MemoryMapFlag.MapPrivateOption
NewOnlyPySide6.QtCore.QIODeviceBase.OpenModeFlag.NewOnly
NoErrorPySide6.QtCore.QFileDevice.FileError.NoError
NoOptionsPySide6.QtCore.QFileDevice.MemoryMapFlag.NoOptions
NotOpenPySide6.QtCore.QIODeviceBase.OpenModeFlag.NotOpen
OpenErrorPySide6.QtCore.QFileDevice.FileError.OpenError
PermissionsErrorPySide6.QtCore.QFileDevice.FileError.PermissionsError
PositionErrorPySide6.QtCore.QFileDevice.FileError.PositionError
ReadErrorPySide6.QtCore.QFileDevice.FileError.ReadError
ReadGroupPySide6.QtCore.QFileDevice.Permission.ReadGroup
ReadOnlyPySide6.QtCore.QIODeviceBase.OpenModeFlag.ReadOnly
ReadOtherPySide6.QtCore.QFileDevice.Permission.ReadOther
ReadOwnerPySide6.QtCore.QFileDevice.Permission.ReadOwner
ReadUserPySide6.QtCore.QFileDevice.Permission.ReadUser
ReadWritePySide6.QtCore.QIODeviceBase.OpenModeFlag.ReadWrite
RemoveErrorPySide6.QtCore.QFileDevice.FileError.RemoveError
RenameErrorPySide6.QtCore.QFileDevice.FileError.RenameError
ResizeErrorPySide6.QtCore.QFileDevice.FileError.ResizeError
ResourceErrorPySide6.QtCore.QFileDevice.FileError.ResourceError
staticMetaObject<PySide6.QtCore.QMetaObject object at 0x7f40ebf36240>
TextPySide6.QtCore.QIODeviceBase.OpenModeFlag.Text
TimeOutErrorPySide6.QtCore.QFileDevice.FileError.TimeOutError
TruncatePySide6.QtCore.QIODeviceBase.OpenModeFlag.Truncate
UnbufferedPySide6.QtCore.QIODeviceBase.OpenModeFlag.Unbuffered
UnspecifiedErrorPySide6.QtCore.QFileDevice.FileError.UnspecifiedError
WriteErrorPySide6.QtCore.QFileDevice.FileError.WriteError
WriteGroupPySide6.QtCore.QFileDevice.Permission.WriteGroup
WriteOnlyPySide6.QtCore.QIODeviceBase.OpenModeFlag.WriteOnly
WriteOtherPySide6.QtCore.QFileDevice.Permission.WriteOther
WriteOwnerPySide6.QtCore.QFileDevice.Permission.WriteOwner
WriteUserPySide6.QtCore.QFileDevice.Permission.WriteUser

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__delattr__(self, name) Implement delattr(self, name). [extrait de __delattr__.__doc__]
__getattribute__(self, name) Return getattr(self, name). [extrait de __getattribute__.__doc__]
__setattr__(self, name, value) Implement setattr(self, name, value). [extrait de __setattr__.__doc__]
aboutToClose
bytesWritten
channelBytesWritten
channelReadyRead
copy copy(fileName: str, newName: str) -> bool [extrait de copy.__doc__]
decodeName decodeName(localFileName: bytes) -> str [extrait de decodeName.__doc__]
destroyed
encodeName(fileName: str) -> PySide6.QtCore.QByteArray encodeName(fileName: str) -> PySide6.QtCore.QByteArray [extrait de encodeName.__doc__]
exists exists(fileName: str) -> bool [extrait de exists.__doc__]
fileName(self) -> str fileName(self) -> str [extrait de fileName.__doc__]
link link(oldname: str, newName: str) -> bool [extrait de link.__doc__]
moveToTrash moveToTrash(fileName: str) -> Tuple[bool, str] [extrait de moveToTrash.__doc__]
objectNameChanged
open open(self, fd: int, ioFlags: PySide6.QtCore.QIODeviceBase.OpenMode, handleFlags: PySide6.QtCore.QFileDevice.FileHandleFlags = PySide6.QtCore.QFileDevice.FileHandleFlag.DontCloseHandle) -> bool [extrait de open.__doc__]
permissions permissions(filename: Union[str, bytes, os.PathLike]) -> PySide6.QtCore.QFileDevice.Permissions [extrait de permissions.__doc__]
readChannelFinished
readyRead
remove remove(fileName: str) -> bool [extrait de remove.__doc__]
rename rename(oldName: str, newName: str) -> bool [extrait de rename.__doc__]
resize resize(filename: str, sz: int) -> bool [extrait de resize.__doc__]
setFileName(self, name: Union[str, bytes, os.PathLike]) -> None setFileName(self, name: Union[str, bytes, os.PathLike]) -> None [extrait de setFileName.__doc__]
setPermissions setPermissions(filename: Union[str, bytes, os.PathLike], permissionSpec: PySide6.QtCore.QFileDevice.Permissions) -> bool [extrait de setPermissions.__doc__]
size(self) -> int size(self) -> int [extrait de size.__doc__]
symLinkTarget symLinkTarget(fileName: str) -> str [extrait de symLinkTarget.__doc__]
tr

Méthodes héritées de la classe QFileDevice

__init_subclass__, __subclasshook__, atEnd, close, error, FileError, FileHandleFlag, FileHandleFlags, FileTime, fileTime, flush, handle, isSequential, map, MemoryMapFlag, MemoryMapFlags, Permission, Permissions, pos, readData, readLineData, seek, setFileTime, unmap, unsetError, writeData

Méthodes héritées de la classe QIODevice

__init_subclass__, __subclasshook__, atEnd, bytesAvailable, bytesToWrite, canReadLine, close, commitTransaction, currentReadChannel, currentWriteChannel, errorString, getChar, isOpen, isReadable, isSequential, isTextModeEnabled, isTransactionStarted, isWritable, openMode, peek, pos, putChar, read, readAll, readChannelCount, readData, readLine, readLineData, reset, rollbackTransaction, seek, setCurrentReadChannel, setCurrentWriteChannel, setErrorString, setOpenMode, setTextModeEnabled, skip, skipData, startTransaction, ungetChar, waitForBytesWritten, waitForReadyRead, write, writeChannelCount, writeData

Méthodes héritées de la classe QIODeviceBase

__copy__, __init_subclass__, __subclasshook__, OpenMode, OpenModeFlag

Méthodes héritées de la classe QObject

__init_subclass__, __repr__, __subclasshook__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, event, eventFilter, findChild, findChildren, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, parent, property, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent

Méthodes héritées de la classe Object

__init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__dir__, __format__, __hash__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__