title: Qdebug display hex value
body: <p>I am trying to display a number using QDebug in the Hex format. Below is the code which I have written.  It is working but the output has string contents enclosed in double quotes:</p>
  
  <p>How to remove these quotes?</p>
  
  
  
  <pre><code>m_CanMsg_ptr-&gt;id = 0x720;
  m_CanMsg_ptr-&gt;sizeData = 1;
  m_CanMsg_ptr-&gt;data[0] = 0x05;
  
  MessageID.setNum(m_CanMsg_ptr-&gt;id,16);
  DataSize  = QString("%1").arg(m_CanMsg_ptr-&gt;sizeData, 0, 16);
  data      = QString("%1").arg(m_CanMsg_ptr-&gt;data[0], 0, 16)
  
  qDebug() &lt;&lt; "Heart-Beat : Msg ID = " &lt;&lt; MessageID &lt;&lt; "  Msg DLC = " &lt;&lt; DataSize;
  qDebug() &lt;&lt; "Msg Data " &lt;&lt; " = " &lt;&lt; data;
  </code></pre>
  
  <p>I did as per these resources:</p>
  
  <p><a href="http://forum.qt.io/topic/5003/moved-how-to-display-a-local-variable-in-hex-when-debugging-a-qt-app/2" rel="noreferrer">http://forum.qt.io/topic/5003/moved-how-to-display-a-local-variable-in-hex-when-debugging-a-qt-app/2</a>
  <a href="http://qt.shoutwiki.com/wiki/Convert_hexadecimal_to_decimal_and_vice-versa_in_Qt" rel="noreferrer">http://qt.shoutwiki.com/wiki/Convert_hexadecimal_to_decimal_and_vice-versa_in_Qt</a></p>
  
  <p><img src="https://i.stack.imgur.com/Yj0o5.png" alt="enter image description here"></p>