Add border under column headers in QTableWidget
问题 I have a table widget with two column header in a dialog that looks like this: There is a separation between the column headers named "Index" and "Label", but there is no separating border between these header and the row below them. How can this be added? Say the table is instantiated as: table = QTableWidget(6, 2, self) I know that I can get the first horizontal header as a QTableWidgetItem by doing headerItem = table.horizontalHeaderItem(0) modify some properties and set it back, but I'm