Hi Marcus thank you for the help. I have managed to align everything now. widgets all centered. but now my model doesnt update with the data after i check the checkboxes, all the rest still working.
code here: <https://gist.github.com/RicardoViana/9110907> It seems my setModelData function doesn´t work. it doesn't spit any errors so i can trace it. the checkboxes update nicely from the model so my guess is my input is not reaching the setData on the model. def setModelData(self, editor, model, index): model.setData(index,self.checkBox.isChecked()) this works. def setEditorData (self, editor, index): getValue = index.model().data(index,QtCore.Qt.EditRole) if getValue == True: self.checkBox.setCheckState(QtCore.Qt.Checked) self.container.setStyleSheet("background-color:#347545") else: self.checkBox.setCheckState(QtCore.Qt.Unchecked) self.container.setStyleSheet("background-color:#7F2627") thank you best Ricardo Another thing im confused is if i should still use the checkStateRole or EditRole for the checkboxes -- 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 python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/9b5e7e16-19bd-476a-9f4f-b71957b2693b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.