{"id":36,"date":"2015-09-19T13:11:13","date_gmt":"2015-09-19T20:11:13","guid":{"rendered":"http:\/\/blog.stevenzaharakis.com\/?p=36"},"modified":"2015-09-19T13:11:13","modified_gmt":"2015-09-19T20:11:13","slug":"pyqt-pyside-qt-creator-and-maya","status":"publish","type":"post","link":"https:\/\/blog.stevenzaharakis.com\/index.php\/2015\/09\/19\/pyqt-pyside-qt-creator-and-maya\/","title":{"rendered":"PyQt, Pyside, Qt Creator and Maya&#8230;"},"content":{"rendered":"<p>Frustrating! Nothing like spending almost half a day trying to get PyQt working with Maya. Here I am thinking that Maya includes PyQt, whereas I don&#8217;t have to do a thing to get it working. Call me stupid, but when I read &#8220;be aware that with Maya 2015, there is no more need to build PySide as it is coming by default in Maya, nor you have to rebuild Qt itself as the main Qt tools to build PyQt are now included in the Maya distributions&#8221;, I take that to mean there is not much I have to do in order to start some GUI scripting with PyQt. But no, this doesn&#8217;t work:<\/p>\n<p>import PyQt4.QtCore as qc<br \/>\nimport PyQt4.QtGui as qg<\/p>\n<p>Error: ImportError: file line 1: No module named PyQt4.QtCore<\/p>\n<p>Apparently I still need to do all of <a href=\"http:\/\/download.autodesk.com\/us\/support\/files\/maya_documentation\/pyqtmaya2015.pdf\" target=\"_blank\">this<\/a>, even though some part of Qt is included&#8230;. \u00a0 &gt;:(<\/p>\n<p>So I decided, screw it.. I will just jump ship over to PySide. \u00a0I&#8217;ve heard it&#8217;s similar enough. \u00a0I just want to say a big thanks to <a href=\"http:\/\/www.brechtos.com\/using-qt-designer-pyside-create-maya-2014-editor-windows\/#comment-1317\" target=\"_blank\">Brecht Lecluyse<\/a> for this great writeup on starting off with PySide. \u00a0It really helped a lot. \u00a0Now onto some Qt Creator and GUI fun.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Frustrating! Nothing like spending almost half a day trying to get PyQt working with Maya. Here I am thinking that Maya includes PyQt, whereas I don&#8217;t have to do a thing to get it working. Call me stupid, but when I read &#8220;be aware that with Maya 2015, there is no more need to build [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_links_to":"","_links_to_target":""},"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.stevenzaharakis.com\/index.php\/wp-json\/wp\/v2\/posts\/36"}],"collection":[{"href":"https:\/\/blog.stevenzaharakis.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.stevenzaharakis.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.stevenzaharakis.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.stevenzaharakis.com\/index.php\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":1,"href":"https:\/\/blog.stevenzaharakis.com\/index.php\/wp-json\/wp\/v2\/posts\/36\/revisions"}],"predecessor-version":[{"id":37,"href":"https:\/\/blog.stevenzaharakis.com\/index.php\/wp-json\/wp\/v2\/posts\/36\/revisions\/37"}],"wp:attachment":[{"href":"https:\/\/blog.stevenzaharakis.com\/index.php\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.stevenzaharakis.com\/index.php\/wp-json\/wp\/v2\/categories?post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.stevenzaharakis.com\/index.php\/wp-json\/wp\/v2\/tags?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}