<div dir="ltr">Hi Zac,<div><br></div><div>Generally, QGIS data are stored in layers. I think it is enough for us to transfer data in layers. Could you give a detailed example?</div><div><br></div><div>Best regards,</div><div><br></div><div>Han</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Zac Wang <<a href="mailto:zacwang15@gmail.com">zacwang15@gmail.com</a>> 于2021年4月22日周四 下午7:07写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>Are there some ways to transfer data between different pyqgis plugins? I hope plugins share state.</div><div><br></div><div>The only way I found is to make pluginA to be a child component of QgisApp(iface.mainWindow()).</div><div><br></div><div>Then in another pluginB, call findChild() to get the object(pluginA) and connect its signal.</div><div><br></div><div>This is a possible solution, but it's not easy to maintain because plugins are not initiated in the same file.</div><div><br></div><div>Is there a better solution?</div><div><br></div><div>Regards,</div><div><br></div><div>Zac</div></div>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="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" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div>