Yeah you guys are right. i should probably stick with a QTableWidget.
In the beginning i was thinking of creating a QHBoxLayout for each light
w/ a widget for each attr inside.
And append each to a central widget.
would instantiate a custom class with all the functionality i needed for
every light in the scene.
What you more experienced guys think about this idea of design ?
But then i would loose those handy header labels
("diffuse","specular",etc) and have to duplicate labels for
every light.
the thing is i learned a lot from this process. And maybe it's not
necessary to handle
tons of data, but the neat thing about using the model is that if i
change some attr in the attribute
editor, it immediately updates the data on my table, as soon as i have
focus on it. And the other way
i need always a refresh button.
I got another older version that has the functionality, just doesn't
have the nice centered checkboxes.
And it doesn't even use delegates. Just by using CheckStateRole.
https://gist.github.com/RicardoViana/8961047
have a nice weekend all, and again thank you for all the mentoring.
best
Ricardo
--
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/5308E4DE.30809%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.