maya MQUtil Issue

43 views
Skip to first unread message

TTw TTa

unread,
Jun 26, 2022, 12:30:48 AM6/26/22
to Python Programming for Autodesk Maya
I want wo modify Maya UI with PySide2

uTools_1656217414133.png

In line 58,I got child widget But it was QList<QObject*> object whitch was wrapped with swig

My Qustion was How Could I get this wraped Qt object content, Because PySide2 does not has QList type
···
 qt_children = MayaQt.swigToQt(swig_children,   Qustion_Code)
···














Justin Israel

unread,
Jun 26, 2022, 1:21:41 AM6/26/22
to python_in...@googlegroups.com
Does shiboken complain if you ask it to wrap to a Python list type? 

qt_children = MayaQt.swigToQt(swig_children, list)

I can't test anything at the moment. But I would hope QList is defined in shiboken to map to python list. Not sure if it returns a list of swig pointers that again need to be wrapped.















--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/ed15f6c3-0e0b-47b5-8277-4e7863d2a029n%40googlegroups.com.
Message has been deleted

TTw TTa

unread,
Jun 26, 2022, 10:04:52 AM6/26/22
to Python Programming for Autodesk Maya
Yes, I Test ervery iterable things , but it not worked good, I think it is a bug, I  will test it use c++ maya command
Reply all
Reply to author
Forward
0 new messages