<div dir="ltr">Hi,<div><br></div><div>I am loving the PyQt. I want to confirm that the operator ">>" QTextStream operator does not work in PyQt5. This will not work:<pre style="color:rgb(0,0,0);font-family:"DejaVu Sans Mono";font-size:11.4pt">file = QFile(<span style="color:rgb(0,128,128);font-weight:bold">"myfile.txt"</span>)<br><br><span style="color:rgb(0,0,128);font-weight:bold">if </span>file.open(QIODevice.ReadOnly):<br>    stream = QTextStream(file)<br>    stream >> <span style="background-color:rgb(228,228,255)">value</span><br>    stream >> text >> <span style="background-color:rgb(228,228,255)">value</span></pre><pre style="color:rgb(0,0,0);font-family:"DejaVu Sans Mono";font-size:11.4pt"><span style="background-color:rgb(228,228,255)"><br></span></pre>What are the preferred ways to deserialize an QIODevice in PyQt?</div><div><br></div><div>Thanks,<br>Christopher<br><pre style="color:rgb(0,0,0);font-family:"DejaVu Sans Mono";font-size:11.4pt"><br></pre><pre style="color:rgb(0,0,0);font-family:"DejaVu Sans Mono";font-size:11.4pt"><span style="background-color:rgb(228,228,255)"><br></span></pre><pre style="color:rgb(0,0,0);font-family:"DejaVu Sans Mono";font-size:11.4pt"><br></pre></div></div>