Maya 2017 C++ Qt ui memory management issues

Maya 2017 C++ Qt ui memory management issues

lion032
Explorer Explorer
523 Views
0 Replies
Message 1 of 1

Maya 2017 C++ Qt ui memory management issues

lion032
Explorer
Explorer

Hello,

 

I am porting a plugin I wrote for maya 2016 that was based on helixQtCmd example to maya 2017 and Qt 5.6.1 (It has features that I need).

While in maya 2016 my plugin worked as it should in 2017 (more correctly qt 5.6.1) the changes made to QPointer made unusable.

Now even the devkit examples cause exceptions that originates from the new QPointer behavior and given that there are no debug symbols for maya's qt it is impossible to find what widget not being deleted and therefore not clearing the QPointer to the ui.

 

If I change the Qpointer to regular cpp pointer or QSharedPointer I cannot track if the user closed the window.

 

Can anyone please suggest another approach for managing Qt ui life cycle?

0 Likes
524 Views
0 Replies
Replies (0)