Re: [PyQt] Problem with QDataStream and QString

2008-04-14 Thread Phil Thompson
On Friday 11 April 2008, İsmail Dönmez wrote: > Hi again, > > Looks like I am back to QDataStream problems and here is the testcase : > >>> from PyQt4.QtCore import * > >>> a = QByteArray() > >>> b = QDataStream(a, QIODevice.ReadWrite) > >>> b << QString("123") > > > > >>> b.device().seek(0) > > T

[PyQt] Problem with QDataStream and QString

2008-04-11 Thread İsmail Dönmez
Hi again, Looks like I am back to QDataStream problems and here is the testcase : >>> from PyQt4.QtCore import * >>> a = QByteArray() >>> b = QDataStream(a, QIODevice.ReadWrite) >>> b << QString("123") >>> b.device().seek(0) True >>> b.readString() '' I was expecting the last output to be "123"