[PyQt] set horizontal header item

Phil phil_lor at bigpond.com
Sun Mar 31 11:52:14 BST 2013


Thank you for reading this.

I'm new to both Pyqt and this list. I want to set a table widget header 
based on its cell contents. The documentation shows how it's done;

self.tableWidget.setHorizontalHeaderItem (1, QTableWidgetItem *item)

I have done this many years ago in C++ but I don't quite see how to 
instantiate a QTableWidgetItem in Python.

-- 
Regards,
Phil


More information about the PyQt mailing list