PDA

View Full Version : How to add a widget as a header item in QTableWidget?



chithara
27th June 2018, 07:20
Hi,

I am using a QTableWidget(3x3) in which each column header should be a widget (combination of icon, label,link label). I could not see any way of adding a widget as a header item. Need help with possible approaches to get the desired result.

TIA

Ginsengelf
27th June 2018, 08:01
Hi, at least icon (http://doc.qt.io/qt-5/qtablewidgetitem.html#setIcon) and label (http://doc.qt.io/qt-5/qtablewidgetitem.html#setText) should be possible using the standard QTableWidgetItem. I'm not sure about links.

Ginsengelf

edit: DOCS tags messed up the links