title: Qt cout matrix4x4
body: <p>I'm having trouble printing a qtmatrix 4x4.</p>
  
  <pre><code>QMatrix4x4 m = ...;
  std::cout &lt;&lt; m &lt;&lt; std::endl;
  </code></pre>
  
  <p>I get the following error</p>
  
  <pre><code>cannot bind 'std::ostream {aka std::basic_ostream&lt;char&gt;}' lvalue 
  to 'std::basic_ostream&lt;char&gt;&amp;&amp;'
  /usr/include/c++/4.6/ostream:581:5: error:   
  initializing argument 1 of 'std::basic_ostream&lt;_CharT, _Traits&gt;&amp; 
  std::operator&lt;&lt;(std::basic_ostream&lt;_CharT, _Traits&gt;&amp;&amp;, const _Tp&amp;) 
  [with _CharT = char, _Traits = std::char_traits&lt;char&gt;, _Tp = QMatrix4x4]'
  </code></pre>
  
  <p>From <a href="http://qt-project.org/doc/qt-4.8/qmatrix4x4.html#operator-lt-lt-39" rel="nofollow">Qt Matrix4x4 doc</a> it shows that I should be able to output it.</p>