Qt "tcpserver->write(string)"
<p>i have a very simple question here, How can i send a string with </p>

<pre><code>tcpserver-&gt;write(string);
</code></pre>

<p>I tried:</p>

<pre><code>tcpserver-&gt;write("string") 
</code></pre>

<p>and it works, but if i want to input a string in there, i get a "no matching function to call to 'QtcpSocket::write(QString)'"
error,</p>

<p>so i tried converting the string to "data" and then send it, but i got a ton of errors...</p>

<p>And my question is: How can i easly send a string thru my tcpserver?</p>

<p>(I should also mention, that i am very new to programming)</p>