pymel.core.uitypes.pysideWrapInstance — PyMEL 1.0.7 documentation

pymel.core.uitypes.pysideWrapInstance

pysideWrapInstance(ptr, base=None)

Utility to convert a point to a Qt Class and produce the same result as sip.wrapinstance using shiboken.wrapInstance.

Note: This is modeled after nathanhorne.com/?p=486. The base arg isn’t currently used, and defaults to QObject. The way that base arg was used seems like it would give a different result than the sip version. It would skip the checking for attribute and just use base as base, however the sip version will still return QMainWindow even if QObject is passed in.