<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>i used to check if the C++ object is gone during runtime with
sip.isdeleted(object)... it's no silver bullet and i don't know if
this helps you, though.</p>
<p>see:
<a class="moz-txt-link-freetext" href="https://www.riverbankcomputing.com/static/Docs/PyQt5/api/sip/sip-module.html?highlight=isdeleted#isdeleted">https://www.riverbankcomputing.com/static/Docs/PyQt5/api/sip/sip-module.html?highlight=isdeleted#isdeleted</a><br>
</p>
<p>Cheers</p>
<p>Jonas<br>
</p>
<div class="moz-cite-prefix">On 31.08.2020 18:15, David Erill wrote:<br>
</div>
<blockquote type="cite"
cite="mid:%3CCAPnckXSmOaVPB_h3+vpi15aDUPWv0z73ktG3hVg27S-foRQ1_w@mail.gmail.com%3E">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi Richard,
<div>Actually we have a similar issue with one of our plugins,
so if anyone can give feedback about how to handle this
situation, it would be great.</div>
<div>I'm talking about any kind of Qgs class, not only about
QgsLayerTreeGroup:</div>
<div>"wrapped C/C++ object of type QgsXXX has been deleted"<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Missatge de Richard
Duivenvoorde <<a href="mailto:rdmailings@duif.net"
moz-do-not-send="true">rdmailings@duif.net</a>> del dia
dl., 31 d’ag. 2020 a les 13:43:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On
2020-08-31 11:27, Richard Duivenvoorde wrote:<br>
<br>
> OR is this specific case a QGIS issue, as creating a
GroupLayer maybe<br>
> should also create a c++ grouplayer?<br>
<br>
Forget this part: there IS a c++ grouplayer...<br>
<br>
Regards,<br>
<br>
Richard<br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org"
target="_blank" moz-do-not-send="true">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a
href="https://lists.osgeo.org/mailman/listinfo/qgis-developer"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a
href="https://lists.osgeo.org/mailman/listinfo/qgis-developer"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote>
</div>
</blockquote>
</body>
</html>