Hi, Im trying to make a list of lights, and Im using attrColorSliderGrp, to control the Color attribute of the light, using Nathan Horn method to use Maya Widget into Pyqt (http://nathanhorne.com/?p=381), the aproach works fine when adding it to an QHBoxlayout, or any other container, but when added to a QTreeWidgetItem with QtGui.QTreeWidget.setItemWidget(), everything works except the color show in the button is always white, but when clicked it shows the real color, and you can change it.
(In the Image here, the same objects wich where added
to qtreewidgetitem appears white, and on the bottom part, they where added to an horizontal layout and they show OK)
http://s12.postimg.org/kal4ffh4t/Screenshot_1.png
I guess something is overriding it, any idea what?? or any other aproach I can use to achieve this?
The main reason why I’ m not using a regular button, to call a regular colorEditor(or even pyqt color picker
), an apply changes to the color attribute of the light, is because I want IPR to be refreshing live when browsing trough the color palette, before you press OK, can this be achieved trough the api?? or othe suggestions??
Thanks.
Macbeth Rene