On Thursday 22 October 2009 07:09:13 pm Ville M. Vainio wrote:
> On Thu, Oct 22, 2009 at 11:52 AM, Matti Airas <[email protected]> 
wrote:
> > - Would it be possible to use QFile and Python file object
> > interchangeably?
> 
> Moreover, what's the use case for QFile anyway, in python code? If the
> only purpose is passing it to other qt functions, providing a wrapper
> for creating QFile from python file object is the only necessary
> operation.
It is a QIODevice with the following signals:

void aboutToClose ()
void bytesWritten ( qint64 bytes )
void readChannelFinished ()
void readyRead ()

That allows you to integrate file handling operations with the Qt event loop 
easily. You can't do that with a native python file object.

-- Richard
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to