I would like to start learning PyQt4. I have seen several tutorials and in all of these tutorials are importing sip and PyQt4. I have searched and in almost all cases pyqt can be replaced with pySide wich is installed with maya. But sip module I need to install.
So my question is, if I write UI using QT Designer does other machines need these modules to run my scripts?
Basically my question is do I nid SIP to run UI scripts writen in PyQt4?
PyQt basic question.
To run a Qt UI inside Maya all you need to do is attach to Maya’s main window (plenty doco out there about that specific bit), and that’s pretty much it.
You won’t really neep sip.
Maya currently does use pySide and not pyQt, but the differences for a beginner to intermediate level user living inside of Maya are entirely negligible.
When you look at tutorials outside of Maya you will see plenty things that don’t apply to running inside a host app. Also always make sure you look for recent tutorials, pyQt and its interface towards Python has changed several times (and pySide in Maya only supports API2 with native types, which is for the better anyway), so some times you might find things that, if too old, will have you scratching your head (e.g. QVariant, which doesn’t exist in API2, or some of the very old school signal/slot round-hook callbacks).
Here’s a very gentle introduction to the subject:
http://zurbrigg.com/maya-python/category/pyqt-projects-for-maya