[Maya-Python] PyQt4: List QCheckBox items in layout

2015-04-02 Thread Erik Spellerberg
Hey guys, I have a PyQt4 question for you. I have a layout containing only a bunch of checkboxes, and rather than querying the state of every one manually I want to loop over the items in the layout, then simply grab their label if they are active. for i in xrange(self.qt_window.verticalLayou

Re: [Maya-Python] PyQt4: List QCheckBox items in layout

2015-04-02 Thread Marcus Ottosson
If you post a small, but complete example it would be easier to test things out; but off the top of my head, layouts wrap widgets in QLayoutItems which has a widget() method on it to retrieve the inner widget. for i in xrange(self.qt_window.verticalLayout_cb.count()): box = self.qt_window.vert

Re: [Maya-Python] PyQt4: List QCheckBox items in layout

2015-04-02 Thread Erik Spellerberg
You are absolutely right, it was hiding right there in front of me. Thank you very much! -- 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