On Sun, 26 Jun 2022, 4:30 pm TTw TTa, <wwn1506514...@gmail.com> wrote:

> I want wo modify Maya UI with PySide2
>
> [image: uTools_1656217414133.png]
> so I write those code
> <https://gist.github.com/wandth/d6f09171b8475760ae0ff89754ecf4df>
>
> 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)
> ···
>

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_maya+unsubscr...@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
> <https://groups.google.com/d/msgid/python_inside_maya/ed15f6c3-0e0b-47b5-8277-4e7863d2a029n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0dFQN0KUEVNHB3Mz82erWmmOy2c37-hN3L9YcXmKuE3g%40mail.gmail.com.

Reply via email to