On Fri, 12 Aug 2016, 7:27 PM Fredrik Averpil <[email protected]>
wrote:

> Managed to get help from Autodesk on this. Apparantly, the following code
> makes Maya cast some black magic on the window and bless it with being
> properly float on top of the main Maya window without the Qt.Tool flag:
>
> self.setProperty("saveWindowPref", True)
>
> Figured I’d just share my findings on this:
> https://gist.github.com/fredrikaverpil/b76bd91b9924435465ecb1b2270c1a9d
>
> In the gist there are various ways of making a cross-platform floating
> window. The code is for PySide2 but can easily be ported to PySide.
>
> Cheers!
>
Thanks for this info. Part of their customizations to Qt I take it.
The part about actually saving window positions... Is that between layout
changes or something? I didn't think that would refer to Maya startup since
your window wouldn't exist by the time Maya went to restore prefs. Unless
it is more black magic that records the object name and catches the new
window creation when you do it?

​
>
> --
> 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/CAD%3DwhWMNKUF-xSr1FVWjkpDjDk%3DTv1ES1g4KEhkmb1yBg1MnGQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWMNKUF-xSr1FVWjkpDjDk%3DTv1ES1g4KEhkmb1yBg1MnGQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAPGFgA19NmWUtAwxdbvqK1Aso-XhK14r%3DXf25J0uKhMZeMoqZA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to