Hi,all<br><br>I am newbie to PyQt and I have a question when I work on my app with PyQt.<br>I want to use a QDataStream to form a QHash object into a QByteArray and write it into a QTcpSocket.But there is an error when I run my app said&nbsp; NameError: global name 'QHash' is not defined.I have import everything from QtCore and QtGui.Also I can locate qhash.sip in my computer (/usr/share/sip/PyQt4/QtCore/qhash.sip).So I want to know wherer is the problem and how to use QHash here.<br>Thanks a lot in advance.<br><br><br>Longchao<br><br><br><span title="neteasefooter"/><hr/>
<a href="http://www.yeah.net/?from=o1" target="_blank">网易邮箱,没有垃圾邮件的免费电子邮箱!</a>
</span>