title: How do I see the contents of Qt objects QByteArray during debugging?
body: <p>My program use some variables of type QByteArray to contain data (bytes). That bytes maybe are special characters like '\0', 1, ... So I cannot see all elements after special character when debugging. If I use std::vector, I can see all elements. I must use QByteArray but I cannot see all element of this variable when debugging. Help me, plz!
  Thanks!</p>
  
  <p>Example: QByteArray bytes(4, '\0');
  Now, if debug, I just see "". But I want to see "'\0', '\0', '\0', '\0'" or something like like this.</p>
  
  <p>I also have the same problem with QDateTime. But I resolved by this help: <a href="http://www.qtcentre.org/threads/32336-View-QDate-and-QDateTime-in-VisualStudio-debugger" rel="nofollow">http://www.qtcentre.org/threads/32336-View-QDate-and-QDateTime-in-VisualStudio-debugger</a></p>
  
  <p>This link may help but this not resolve my problem: <a href="http://qt-project.org/wiki/IDE-debug-helpers" rel="nofollow">http://qt-project.org/wiki/IDE-debug-helpers</a></p>
  
  <p>Example:     </p>
  
  <pre><code>QByteArray ba("Hello"); //debuging, see: ba = "Hello"     
  ba.append('\0');     
  ba.append("a message"); //we just see: ba = "Hello"   
  </code></pre>