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") <PyQt4.QtCore.QDataStream object at 0xa77e8e2c> >>> b.device().seek(0) True >>> b.readString() '' I was expecting the last output to be "123" instead of empty string. Any idea what I am doing wrong here? Regards, ismail -- Never learn by your mistakes, if you do you may never dare to try again. _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt