title: superscript for QTableWidget header
body: <p>I'm learning QT and have to design a table like this </p>
  
  <p><a href="https://i.stack.imgur.com/JuR0N.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JuR0N.png" alt="example"></a></p>
  
  <p>I need "m2" with "2" as superscript. </p>
  
  <p>Here is my code:</p>
  
  <pre><code>ui.tableWidget-&gt;horizontalHeaderItem(0)-&gt;setText("Date");
  ui.tableWidget-&gt;horizontalHeaderItem(0)-&gt;setBackgroundColor(QColor(217, 217, 217));
  ui.tableWidget-&gt;horizontalHeaderItem(1)-&gt;setText("House address");
  ui.tableWidget-&gt;horizontalHeaderItem(1)-&gt;setBackgroundColor(QColor(217, 217, 217));
  ui.tableWidget-&gt;horizontalHeaderItem(2)-&gt;setText("Area \n [m\u00B2]");
  ui.tableWidget-&gt;horizontalHeaderItem(2)-&gt;setBackgroundColor(QColor(217, 217, 217));
  ui.tableWidget-&gt;horizontalHeaderItem(3)-&gt;setText("Price \n [USD]");
  ui.tableWidget-&gt;horizontalHeaderItem(3)-&gt;setBackgroundColor(QColor(217, 217, 217));
  ui.tableWidget-&gt;horizontalHeaderItem(4)-&gt;setText("Price/Area \n [USD/m\u00B2]");
  ui.tableWidget-&gt;horizontalHeaderItem(4)-&gt;setBackgroundColor(QColor(217, 217, 217));
  </code></pre>
  
  <p>I used "\u00B2" for "2" as superscript but it doesn't work, the background color also does not change. Please help me, many thanks !</p>