Well, I unfortunately don't have any of my old attempts just sitting around anymore, but I did look over your samples, Marcus, and I found something interesting:
In the second sample, where you set a new StyledItemDelegate, I did some debugging on the tree. I've not had time to dive deep yet and find an answer, but the rowCount() of the model for the found QTableView is showing as 1 regardless of how many objects are selected or how many attributes are shown, which indicates to me that we've got some deeper nesting going on before we can properly assign a different delegate. I tried a findChildren instead of a findChild, but it only seemed to find the one, which leads me to wonder if it's not using something other than a QTableView to display. I looked at the children of the QWidgets in the list, and found a lot more items, so I'm definitely going to need to spend some time digging deeper into the widget hierarchy, but I suspect you're trying to style the wrong item, although it makes perfect sense that it would be a QTableView. With that said, the delegate in question STILL doesn't seem to be called, but that could just be due to something else. I did notice that there's a raw ItemDelegate in the overall structure as well, possibly that has something to do with it. On Mon, Mar 16, 2015 at 6:08 AM, Rémi Deletrain <[email protected]> wrote: > Thank you for your reply, > > I also find that changing the Maya interface is a big fuss. It often start > after each release. > I wanted to try to do that to keep the functionality of the channelBox. > Drag and drop in the view port with the middle click for example, and other > functionality. > > I also edited style sheets but the real widget concerned of the channel > box is inaccessible ... I tried many things but nothing there. > > I'll watch Justin DVD and see what I can find what I want to do. > > I poseterai what I found here > > -- > 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/591ee90a-1dbd-4826-9c43-b817a8bf0132%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/591ee90a-1dbd-4826-9c43-b817a8bf0132%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CAM33%3Da6SoXAqxQXPyEL8v8O2ox0OkMW_kuhhaDsMEg6c%3DxOs6g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
