Hi folks, looking at this group here are several Qt/Maya related subjects, but I was wondering if some of you out there would be willing to share their experiences with PyQt and Maya in this thread, which should be more about general approaches and less about examples, which hopefully could be covered examples from external websites.
I myself have written various Qt apps for maya, mostly UIs that DON'T use Maya specific controls like OutlinerPanel or ModelPanel. But this is where it get's interesting - injecting more complex UI controls/ layouts into UIs created in designer by converting them to PyQt objects. Hoping, that the creators of this code don't mind me posting this in this thread here is some code that hopefully make everybodies lifes easier: PyQt wrappers for easy creation/identification of PyQt widgets/ layouts: http://pastebin.com/kNSeTMmX Nathan Thorpe on general PyQt & Maya usage: http://nathanhorne.com/?p=183 Extensive thread about attaching controls to UIs created in Designer: http://groups.google.com/group/python_inside_maya/browse_thread/thread/ffb519d21f8a46fc/d10133b98d28f036?lnk=gst&q=qt#d10133b98d28f036 Now, here's the interesing part for me. When one tries to create more complex UIs using more elaborate Maya UI controls like said OutlinerPanel, all works fine when converting to Qt objects, but the my tests show that the resulting dialogs are notbehaving as they should. Maya often spits out errors when trying to reference certain widgets after UI creation. One test I did was actually injecting an converted OutlinerPanel into a layout created in Designer. The result was that most of the OutlinerPanel menuitems were erroring when trying to execute them, or where not working at all. So interesting for this thread would be, what are the pitfalls, tricks, hacks to make PyQt do more then just show a bunch of pushButtons and lineEdits. Cheers R -- http://groups.google.com/group/python_inside_maya
