Hey thanks a lot for the Help Justin.
My first guess was that once the item enters the Tree, the tree takes ownership of the item, and because that, the callback cant find the object who started it, altought the item stills finds the light...
But then I noticed, that the color still changes from white to black, like if it was reading only luminance, so the callback is still there, maybe just the way it converts the rgb values to color the styleshet of the QLabel is missing., maybe I just need to use the Parent option when starting the cmds.attrColorSliderGrp() calling the treeWidgetItem as parent? (I couldn't do it, try several objects as parents it couldnt find anyone) , or maybe use QItemDelegate instead of a QTreeWidgetItem?
I dont know.. but I fix it, making my own scriptjob, that looks for the atrribute color change and recoloring the qlabel inside the object, by looking at its children (the qlabel for the color is the child with 2 as index).
self.treeWidget.itemWidget(treeWidgetItem, 4).children()[2].setStyleSheet("QLabel { background-color : rgb(%s%%, %s%%, %s%%);}" % (str(color[0]), str(color[1]), str(color[2])))
That made the trick, But i dont know if is the best aproach, or if scriptjob, is good enough (need to test it), or I need to make my own callback using the API.
Thanks!