MayaQWidgetDockableMixin dockCloseEventTriggered not called

135 views
Skip to first unread message

kiteh

unread,
Nov 5, 2018, 3:16:14 PM11/5/18
to Python Programming for Autodesk Maya
Hi all,

I am having some issues with MayaQWidgetDockableMixin, in which it is a QWidget.
When I am testing it out in Maya 2017, I used the signal `dockCloseEventTriggered` where a function will be called to save the relevant options I have made within my  GUI by using QSettings. The settings are able to populate correctly when I am relaunching my tool.

However when I am testing this out in Maya 2018, it seems that the function/ `dockCloseEventTriggered` is not being called. As such, nothing is saved/ loaded, and the .conf file is also not created.

Pardon me for not posting any codes as it consists of quite several scripts but wondering if anyone has encounter this/ if there is a way to check if the signal or trigger does indeed works?

Message has been deleted

kiteh

unread,
Nov 5, 2018, 8:46:23 PM11/5/18
to Python Programming for Autodesk Maya
Actually I was wrong - I had thought that using `self.closeEvent` may works in Maya 2018, but turns out it is not.

Need any insights on this. Much appreciated in advance!
Reply all
Reply to author
Forward
0 new messages