Wow, great job! It certainly looks like you have got the delegate under control.
-> is there an alignment method to use on the cells of the QtableView? > Yes, but not in the QTableView, that would be the responsibility of the model. As part of its data() method, one of the role asked for be an alignment role of sorts, for which you can return a Qt.AlignLeft etc like usual. You could possibly subclass the view to take control over this, I am not sure. > -> Why the result of QCheckBox.checkState() is returning 0 or 2 instead > of 0(unchecked) and 1(checked)? > Because the checkbox can have three states - off (0), half-on (1) and full-on (2). > -> How to get the selected row in the QTableView ? > Have a look at the QItemSelectionModel<http://qt-project.org/doc/qt-5/qitemselectionmodel.html#details>, there should be one within your QTableView. Best, Marcus -- 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/CAFRtmOD%3D7nqvQDg8Zcf2SxgLiMqJSLi-QgvLQS3dJEooG79u%2BQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
