for a demonstration of this, modify in the file devkit/devkit/other/ PyQtScripts/qt/mysample.py

1) remove the line:
        pt.initializePumpThread()
2) fix the line:
        from sample import Ui_Form
to:
        from zGUI.sample import Ui_Form

the second fix is just a bug in their code.

autodesk folks: time to update the examples!

-chad



On Mar 17, 2010, at 1:35 PM, shawnpatapoff wrote:

Okay nice, so I don't have to worry about PyQt freezing the Maya UI or
spawning my own threads, or dealing with Pumpthreads. Thats a biiig
upgrade.

Thanks for the info!


On Mar 17, 1:24 pm, Chris G <[email protected]> wrote:
On Wed, Mar 17, 2010 at 4:15 PM, shawnpatapoff <[email protected]>wrote:

So, what do I need to know to write UI's with QT? c++? Haven't had a
lot of luck using PyQt inside of maya.

Well, since 2011 is based on Qt, it should be much less painless than

before to use PyQt inside Maya (once you have a working PyQt), because there won't be two event-loops to deal with, and the integration will be much tighter due to everything involved being QWidgets instead of a mixing native
and qt windows.

For C++, there are some API functions to help you, but primarily it's just a matter of plain C++ Qt in your plugin, and building against the same version
of Qt that Maya uses.

--
http://groups.google.com/group/python_inside_maya

--
http://groups.google.com/group/python_inside_maya

Reply via email to