title: How to use qDebug() with two parameters in qt?
body: <p>I am trying to use qDebug() with two parameters but it fails everytime. </p>
  
  <p>When I use separately there is no problem, such as; </p>
  
  <pre><code>qDebug() &lt;&lt; "img:width = " &lt;&lt; img.width();
  qDebug() &lt;&lt; "img:height = " &lt;&lt; img.height();
  </code></pre>
  
  <p>However when I combine them, it gives error.</p>
  
  <pre><code>qDebug() &lt;&lt; "img:width = " &lt;&lt; img.width() &lt;&lt; "/t img:height = " &lt;&lt; img.height() &lt;&lt; std::endl;
  </code></pre>
  
  <p>Error is : </p>
  
  <pre><code>error: no match for 'operator&lt;&lt;' in '((QDebug*)((QDebug*)((QDebug*)qDebug()().QDebug::operator&lt;&lt;(((const char*)"img:width = ")))-&gt;QDebug::operator&lt;&lt;(img.QImage::width()))-&gt;QDebug::operator&lt;&lt;(((const char*)"/t img:height = ")))-&gt;QDebug::operator&lt;&lt;(img.QImage::height()) &lt;&lt; std::endl'
  </code></pre>
  
  <p>Can I use two or more parameters in qDebug? </p>
  
  <p><strong>Edit::</strong></p>
  
  <p>Problem still continue for me if I delete <code>std::endl</code> </p>