lol. :)




On Friday, February 7, 2014, Justin Israel <[email protected]> wrote:

> Confession. I actually don't know how to code. I have another secret forum
> that I forward all these questions to. They answer my questions, and then I
> answer them back here and reap all the cash profits. And when they don't
> answer quickly enough, I out-source to India and China  :-)
>
>
>
>
> On Sat, Feb 8, 2014 at 10:25 AM, Ricardo Viana 
> <[email protected]<javascript:_e(%7B%7D,'cvml','[email protected]');>
> > wrote:
>
>> aaahhh dead on justin. as always:)
>>
>> thank you so much.
>>
>>
>> On Friday, February 7, 2014, Justin Israel <[email protected]>
>> wrote:
>>
>> Are you calling listWidget.clear() somewhere before adding your items? If
>> so, try replacing that with clearContent(). It won't clear your headers.
>>
>> Otherwise can you post a small runnable example that exhibits the problem
>> so we can reproduce it and debug?
>>  On Feb 8, 2014 8:43 AM, "olheiros" <[email protected]> wrote:
>>
>>
>> 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.<https://groups.google.com/groups/opt_out>
>>
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CAK%2Bp0%3DanUvG1brBSyFxFPh7NjTofC-CD_uY7XP0j68AydRHXhw%40mail.gmail.com
>> .
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
> 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]<javascript:_e(%7B%7D,'cvml','python_inside_maya%[email protected]');>
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0-jhU0ffrZs8_AS%2BFaTqNNrzfVd9vpQfEPMAzK5%2B04oQ%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>


-- 
Sent from Mobile

-- 
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/CAK%2Bp0%3DY4Xty5kvT6MciDJX3zVxSnsZuR6pPz8b%3D_wvtJ4%2BkJyw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to