QFile Class Reference
[QtCore module]
Inherits QIODevice.
Inherited by QTemporaryFile.
Types
- enum FileError { NoError, ReadError, WriteError, FatalError, ..., CopyError }
- enum MemoryMapFlags { NoOptions }
- enum Permission { ReadOwner, WriteOwner, ExeOwner, ReadUser, ..., ExeOther }
- class Permissions
Methods
- __init__ (self)
- __init__ (self, QString)
- __init__ (self, QObject)
- __init__ (self, QString, QObject)
- bool atEnd (self)
- close (self)
- bool copy (self, QString)
- FileError error (self)
- bool exists (self)
- QAbstractFileEngine fileEngine (self)
- QString fileName (self)
- bool flush (self)
- int handle (self)
- bool isSequential (self)
- bool link (self, QString)
- sip.voidptr map (self, int, int, MemoryMapFlags flags = QFile.NoOptions)
- bool open (self, QIODevice.OpenMode)
- bool open (self, int, QIODevice.OpenMode)
- Permissions permissions (self)
- int pos (self)
- str readData (self, int maxlen)
- str readLineData (self, int maxlen)
- QString readLink (self)
- bool remove (self)
- bool rename (self, QString)
- bool resize (self, int)
- bool seek (self, int)
- setFileName (self, QString)
- bool setPermissions (self, Permissions)
- int size (self)
- QString symLinkTarget (self)
- bool unmap (self, sip.voidptr)
- unsetError (self)
- int writeData (self, str)
Static Methods
Detailed Description
Type Documentation
QFile.FileError
QFile.MemoryMapFlags
QFile.Permission
Method Documentation
QFile.__init__ (self)
QFile.__init__ (self, QString)
QFile.__init__ (self, QObject)
The QObject argument, if not None, causes self to be owned by Qt instead of PyQt.
QFile.__init__ (self, QString, QObject)
The QObject argument, if not None, causes self to be owned by Qt instead of PyQt.
bool QFile.atEnd (self)
QFile.close (self)
bool QFile.copy (self, QString)
bool QFile.copy (QString, QString)
QString QFile.decodeName (QByteArray)
QString QFile.decodeName (str)
QByteArray QFile.encodeName (QString)
FileError QFile.error (self)
bool QFile.exists (self)
bool QFile.exists (QString)
QString QFile.fileName (self)
bool QFile.flush (self)
int QFile.handle (self)
bool QFile.isSequential (self)
bool QFile.link (self, QString)
bool QFile.link (QString, QString)
sip.voidptr QFile.map (self, int, int, MemoryMapFlags flags = QFile.NoOptions)
Permissions QFile.permissions (self)
Permissions QFile.permissions (QString)
int QFile.pos (self)
str QFile.readData (self, int maxlen)
str QFile.readLineData (self, int maxlen)
QString QFile.readLink (self)
QString QFile.readLink (QString)
bool QFile.remove (self)
bool QFile.remove (QString)
bool QFile.rename (self, QString)
bool QFile.rename (QString, QString)
bool QFile.resize (self, int)
bool QFile.resize (QString, int)
bool QFile.seek (self, int)
QFile.setFileName (self, QString)
bool QFile.setPermissions (self, Permissions)
bool QFile.setPermissions (QString, Permissions)
int QFile.size (self)
QString QFile.symLinkTarget (self)
QString QFile.symLinkTarget (QString)
bool QFile.unmap (self, sip.voidptr)
QFile.unsetError (self)
int QFile.writeData (self, str)