title: Python QtNetwork.QTcpSocket.readAll() and QtNetwork.QTcpSocket.write() not working
body: <p>I'm doing a simple socket connection and the read.All() and write() are not giving me anything back. </p>
  
  <pre><code>import PySide.QtNetwork as Network
  import PySide.QtCore as Core
  
  proxyAddress = '127.0.0.1'
  proxyPort = 1025
  tcpSocket = Network.QTcpSocket()
  tcpSocket.connectToHost(proxyAddress, proxyPort)
  </code></pre>
  
  <p>tcpSocket.state() gives </p>
  
  <pre><code>"PySide.QtNetwork.QAbstractSocket.SocketState.ConnectingState"
  </code></pre>
  
  <p>When I then try to send something, I get this back:</p>
  
  <pre><code>tcpSocket.write("Hello")
  5L
  </code></pre>
  
  <p>And for readAll():</p>
  
  <pre><code>tcpSocket.readAll()
  PySide.QtCore.QByteArray('')
  </code></pre>
  
  <p>Oh and to disconnect I try:</p>
  
  <pre><code>tcpSocket.disconnectFromHost()
  </code></pre>
  
  <p>and it comes back with the next line to write as if it was successful in disconnecting but when I check the state:</p>
  
  <pre><code>tcpSocket.state()
  "PySide.QtNetwork.QAbstractSocket.SocketState.ConnectingState"
  </code></pre>
  
  <p>Any help is appreciated. </p>