Hi all

I have been experimenting with a QTableWidget (Pyside Maya 2014)
for a tool i am developing and i can't seem to get the header labels
to work. I have researched the web and all state that what im doing seems 
right. but
all it does is show number instead of my List Strings.

any help would be very much appretiated
thanks
Ricardo Viana

here is a snippet:

# Main Layout 

self.mainLayout = QtGui.QVBoxLayout()

self.window.setLayout(self.mainLayout)

 self.refresh= QtGui.QPushButton("Refresh")

 # Table widget


 self.listWidget = QtGui.QTableWidget()

self.listWidget.header = 
['Light','Color','Intensity','Subdivisions','Invisible', 
'Diffuse','Specular','Reflection']

 self.listWidget.setColumnCount(len(self.listWidget.header))

self.listWidget.verticalHeader().setVisible(0)

self.listWidget.horizontalHeader().setVisible(1)


 self.listWidget.setAlternatingRowColors(True)

 self.listWidget.setHorizontalHeaderLabels(self.listWidget.header)





 

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/2680eeaf-0e04-4bde-9a38-eef38db7205a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

<<attachment: table.jpg>>

Reply via email to