While the differences between PyQt and PySide aren't too big, it isn't always as easy as changing the imports. PySide uses the equivalent of PyQt w/ sip API v2. That means if your PyQt code was ever using QString or QVariant, that you will have to fix those spots. Also, the Signal and Property object references are a bit different.
On Sun, 15 Feb 2015 8:39 AM null <[email protected]> wrote: > Den fredag 13 februari 2015 kl. 15:37:08 UTC+1 skrev Panupat > Chongstitwattana: > > Hi everyone. > > > > I got a call from my previous studio that a PyQt script I wrote, which > > worked with 2012-2014, is crashing their Maya 2015. So I came in to > > take a look and I can't figure out the reason. I have quite a number > > of script made and only this one is crashing. > > > > The part that crash is basically just an if statement checking if the > > user has a valid selection in QListWidget > > > > if len(self.ui.fileList.selectedIndexes()) < 1: > > print "A" > > return > > > > print "B" > > # script continues > > > > A would print fine. But then it crash and never made it to B. Any idea > > what could be the cause of this? I'm not sure I'll have the time to > > properly convert it to PySide for them which probably would be the > > best way. > > > > Best regard. > > PyQt is very shifty for Maya 2015, we recently had a tools overhaul at my > studio too and we had to change all PyQt references to PySide. We ran into > no issues though, all you have to do is change PyQt to PySide and boom you > are away. Hope this helps it does seem like an odd error to get > > -- > 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 [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/python_inside_maya/b922c312-eecd-4884-b4cf- > 994996a35d18%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1fx9MsWFv1xJftc02Lo4rjckskVbdq0Na%2Bziw0t42vUw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
