subsurface/desktop-widgets
Dirk Hohndel 2368a183e1 Qt6: prevent QML object from being garbage collected
It appears that the QML object that is created when assigning the source
to the StatsView in the ui can be garbage collected and therefore
destroyed and re-instantiated without our knowledge. So instead of
trying to keep a pointer around, we end up looking up the object address
when needed.
We still ask the JS code to not garbage collect the object - but that
clearly isn't enough to prevent it from being destroyed when the parent
widget changes.

Without this fix opening the statistics will crash with Qt6.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2022-03-12 08:28:32 -08:00
..
2015-10-30 10:36:49 -07:00
2022-03-12 08:28:32 -08:00
2020-10-26 19:27:03 -07:00
2017-11-30 23:14:46 -08:00
2022-03-12 08:28:32 -08:00
2020-01-24 09:51:02 -08:00
2020-03-19 08:37:59 -07:00
2020-09-03 11:46:16 -07:00
2017-11-30 23:14:46 -08:00
2017-11-30 23:14:46 -08:00
2017-11-30 23:14:46 -08:00
2015-10-30 10:36:49 -07:00
2017-11-30 23:14:46 -08:00