Open GoogleCodeExporter opened 8 years ago
You can use this:
QByteArray.prototype.toString = function()
{
ts = new QTextStream( this, QIODevice.ReadOnly );
return ts.readAll();
}
Something like this should be defined by default I think.
Original comment by ian.mon...@gmail.com
on 31 Mar 2009 at 6:41
Thanks Ian for the suggestion.
This gave me the idea to use QTextStream as a QFile wrapper:
var file = new QFile( name );
file.open( new QIODevice.OpenMode( QIODevice.ReadOnly ) );
var stream = new QTextStream( file );
while ( !stream.atEnd() )
{
}
Original comment by nhasan%n...@gtempaccount.com
on 31 Mar 2009 at 8:37
Original issue reported on code.google.com by
nhasan%n...@gtempaccount.com
on 31 Mar 2009 at 4:36