It's because you're calling that WrapInstance wrapper with the wrong parameter and you're asking for a QObject. But what you need is a QWidget to construct the QDialog
So either call it like this and get the "search the right type" behavior self.wrapinstance(long(ptr)) or like this self.wrapinstance(long(ptr), QtGui.QWidget) calling it with QtCore.QObject defeats the purpose of using that code, since it that case it simply falls back to this one line of code shiboken.wrapInstance(long(ptr), QtCore.QObject) The wrapinstance should give you a QMainWindow for maya's main window, but in fact it's probably not important for you and you could have just wrapped the instance to a QWidget directly, without using that smarter wrapinstance code On Monday, April 15, 2013 3:08:04 AM UTC-4, Christopher wrote: > @Justin: That's a custom wrapinstance like Nathan has here: > http://nathanhorne.com/?p=485 > > @Serguei: I get the same error whether I call the parent constructor or not -- 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 post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
