How to run & display QQmlApplicationEngine in Maya using PySide2?
Here is my code
class Ball(QObject):
def __init__(self):
QObject.__init__(self)
@Slot(int)
def add(arg1):
mc.polySphere(r=arg1)
engine = QQmlApplicationEngine()
ball = Ball()
engine.rootContext().setContextProperty("ball", ball)
engine.load(QUrl.fromLocalFile("E:/code/QML/sphere.qml"))
--
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/d1a58266-9ab4-4ce9-ad4e-463a8e850d5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.