<div dir="auto"><div><br><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, 4 Nov 2025, 6:45 pm David Koňařík via QGIS-Developer, <<a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I don't have an opinion on dirtying (due to lack of experience with it), <br>
but I do have an opinion on signals and callbacks:<br>
<br>
I agree that QGIS sometimes overuses signals, but I think callbacks are <br>
only a reasonable replacement where there will be exactly one callback, <br>
and only when that callback isn't stored in an object.<br>
<br>
Apart from the code duplication introduced by manually handling lists of <br>
callback functions (and slowly reimplementing signals ourselves), <br>
signals, when attached to objects, will automatically respond to the <br>
destruction of one of the endpoints. This means that properly-connected <br>
signals will never cause use-after-free issues, and that is reason <br>
enough to use them, in my opinion.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">+1. Effectively reimplementing qobject ourselves is not a good idea at all.</div><div dir="auto"><br></div><div dir="auto">Nyall</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
David Koňařík<br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank" rel="noreferrer">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div></div></div>