Maya 2018 - close event in MayaQWidgetDockableMixin is not being called

Maya 2018 - close event in MayaQWidgetDockableMixin is not being called

Anonymous
Not applicable
813 Views
2 Replies
Message 1 of 3

Maya 2018 - close event in MayaQWidgetDockableMixin is not being called

Anonymous
Not applicable

Hi all, I am using Maya MayaQWidgetDockableMixin in my tool, created with PyQt and encounter an issue in which when using either of the signals - `closeEvent` or `dockCloseEventTriggered`, my tool is unable to 'capture' them upon the tool closure.

 

For some reasons, while using any of the mentioned 2 signals in Maya 2017, it seems to be working correctly, but as soon as I start to test my tool in Maya 2018, it does not. I am using QSettings in these functions so as to capture the values made within my tool.

 

Wondering if anyone has experience similar issues and able to share any insights on this?

 

 

814 Views
2 Replies
Replies (2)
Message 2 of 3

lukas.krasa
Explorer
Explorer

It still doesnt work in Maya 2022. Can someone from Autodesk check what is going on? Its pretty vital for us to be able to override closeEvent in some tools.

 

 

Thanks

0 Likes
Message 3 of 3

cheng_xi_li
Autodesk Support
Autodesk Support

Hi,

 

I think if you tried to press the close icon of the widget by default, the widget will be hided instead of closed.

 

I tried to add hideEvent in the dockableWorkspaceWidget.py and it could be triggered properly.

 

Hope it helps.

 

Yours,

Li

 

 

0 Likes