PDA

View Full Version : QtableWidget: How to set two HorizontalHeaderLabels?



robgeek
15th May 2015, 01:51
Good evening!

How can i set two HorizontalHeaderLabels in a qtablewidget?

Thanks!

west
15th May 2015, 12:10
What would you like to achieve?

Santosh Reddy
15th May 2015, 13:53
If you are looking for multi-line label, then just use '\n' :)

tableWidget.setHorizontalHeaderLabels(QStringList( ) << QString("Hello\nWorld"));