Re: [Maya-Python] How to undock tool when using MayaQWidgetDockableMixin

2018-11-22 Thread likage
Hi all, many thanks for getting me back on this. I am implementing some new functions in this tools that was previously written by someone, and I would not want to break any of its code if possible as this tool comprises of several scripts. Even so, is there a way that I can get by with using

Re: [Maya-Python] How to undock tool when using MayaQWidgetDockableMixin

2018-11-22 Thread Phil Sloggett
Agreed, and these days everything is comprised of these “workspaceControls” rather than dockwidgets - I think that mixin class is out of date already. Personally I use a pretty ugly hack these days where: - I create a workspaceControl - grab a handle to it using the MQtUtil findControl method -

Re: [Maya-Python] How to undock tool when using MayaQWidgetDockableMixin

2018-11-22 Thread Joe Weidenbach
Maya2018 went to Qt5, so you might need to read the sources and see what's going on with the docking code. My supposition is that it's using a QDockableWidget under the hood, but my experience with Maya 2018 and docking custom UI's is very mixed. On Fri, 23 Nov 2018 at 15:01 likage wrote: > Hi

[Maya-Python] How to undock tool when using MayaQWidgetDockableMixin

2018-11-22 Thread likage
Hi all, I am using `MayaQWidgetDockableMixin` and for some reasons when using Maya 2018, some of the signals are not working when the tool is closed. While I have managed to find a way to resolve this which is by sending the tool to be docked upon first execution. By doing so, whether I closed