If I create a GUI window in PyQt to use in Maya the window doesn't stay on top of the main Maya window if the PyQt window loses focus. MEL has the "attach to main" context menu option, which is defaulted to on, but I don't know of an equivalent way to do it with PyQt?
I thought the method would likely be to pass a reference to the Maya window into the PyQt script and parent it in the script but I can't find any documentation that would suggest how this would be done.
Does anyone have an idea how to do this?
Thanks