title: Class that inherits std::ostream and operator<< for QString
body: <p>Hell ! I'm trying to make a class that would help me with outputting text to stdout ... Anyway, everything is working, except for one thing. Let's say that I've create object of my class called out. When I do this, everything works prefectly:</p>
  
  <pre><code>out&lt;&lt;"test test"&lt;&lt;std::endl;
  </code></pre>
  
  <p>And it also works when I do this:</p>
  
  <pre><code>out&lt;&lt;QString("another string")&lt;&lt;std::endl;
  </code></pre>
  
  <p>But, when I try to chain these two thing together, like this:</p>
  
  <pre><code>out&lt;&lt;"test test"&lt;&lt;std::endl&lt;&lt;QString("another string")&lt;&lt;std::endl;
  </code></pre>
  
  <p>I get that super-big error, that's eventually telling me that operator&lt;&lt; doesn't accept parameter of type QString. That's strange, because it works OK when I don't chain QString ... Also this works:</p>
  
  <pre><code>out&lt;&lt;"test test"&lt;&lt;std::endl&lt;&lt;"another string"&lt;&lt;std::endl;
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>out&lt;&lt;QString("another string")&lt;&lt;std::endl&lt;&lt;"test test"&lt;&lt;std::endl;
  </code></pre>
  
  <p>So I guess I have problem with my operator&lt;&lt; function ... Either I didn't make operator&lt;&lt; correctly, or I don't return correct value. Or maybe something else is wrong. Anyway, I can't figure it out, so could you help me ? Bellow is source code:</p>
  
  <p>output.h: <a href="http://xx77abs.pastebin.com/b9tVV0AV" rel="nofollow">http://xx77abs.pastebin.com/b9tVV0AV</a>
  output.cpp: <a href="http://xx77abs.pastebin.com/5QwtZRXc" rel="nofollow">http://xx77abs.pastebin.com/5QwtZRXc</a></p>
  
  <p>And of course, the super-big error :D </p>
  
  <p><a href="http://xx77abs.pastebin.com/8mAGWn47" rel="nofollow">http://xx77abs.pastebin.com/8mAGWn47</a></p>
  
  <p>EDIT: for all you wondering, I'm not using namespaces ...</p>