[PyQt] set horizontal header item

Phil phil_lor at bigpond.com
Sun Mar 31 22:25:52 BST 2013


On 01/04/13 01:51, David Cortesi wrote:
> Like instantiating any class in Python: call the class name as a
> function, passing initialization values..
>
> self.setHorizontalHeaderItem( col_num, QTableWidgetItem( "Yabba Dabba") )
>

Thanks David, it all looks pretty straight forward except for the error 
message;

"global name 'QTableWidgetItem' is not defined"

If this was C++ I'd be looking for an include file. Is there something 
similar that I should be including, another module perhaps?

-- 
Regards,
Phil


More information about the PyQt mailing list