<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 30 November 2017 at 11:24, Florian Bruhin <span dir="ltr"><<a href="mailto:me@the-compiler.org" target="_blank">me@the-compiler.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Nov 30, 2017 at 12:12:17PM +0100, Valentin Valls wrote:<br>
> stream = qt.QDataStream(byte_array, qt.QIODevice.ReadOnly)<br>
> my_string = stream.readQString()<br>
<br>
</span>This really isn't what a QDataStream is for... and I don't see how it could<br>
work. For me, it doesn't:<br>
<br>
>>> from PyQt5 import QtCore<br>
>>> ba = QtCore.QByteArray(b'hello')<br>
>>> s = QtCore.QDataStream(ba, QtCore.QIODevice.ReadOnly)<br>
>>> s.readQString()<br>
''<br>
<div class="HOEnZb"><div class="h5"><br>
Florian<br>
<br>
--<br>
<a href="https://www.qutebrowser.org" rel="noreferrer" target="_blank">https://www.qutebrowser.org</a> | <a href="mailto:me@the-compiler.org">me@the-compiler.org</a> (Mail/XMPP)<br>
GPG: 916E B0C8 FD55 A072 | <a href="https://the-compiler.org/pubkey.asc" rel="noreferrer" target="_blank">https://the-compiler.org/<wbr>pubkey.asc</a><br>
I love long mails! | <a href="https://email.is-not-s.ms/" rel="noreferrer" target="_blank">https://email.is-not-s.ms/</a><br>
</div></div><br>______________________________<wbr>_________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" target="_blank">https://www.<wbr>riverbankcomputing.com/<wbr>mailman/listinfo/pyqt</a><br></blockquote></div><br><br clear="all"><div style="font-family:tahoma,sans-serif" class="gmail_default">Oh! So it doesn't look like that is the right way to address the problem then...?</div></div></div>