superscript for QTableWidget header
问题 I'm learning QT and have to design a table like this I need "m2" with "2" as superscript. Here is my code: ui.tableWidget->horizontalHeaderItem(0)->setText("Date"); ui.tableWidget->horizontalHeaderItem(0)->setBackgroundColor(QColor(217, 217, 217)); ui.tableWidget->horizontalHeaderItem(1)->setText("House address"); ui.tableWidget->horizontalHeaderItem(1)->setBackgroundColor(QColor(217, 217, 217)); ui.tableWidget->horizontalHeaderItem(2)->setText("Area \n [m\u00B2]"); ui.tableWidget-