<html>
 <head></head>
 <body> <span style="font-family:sans-serif">Hello Zac, </span>
  <br>
  <br> <span style="font-family:sans-serif">I just saw you were helped and I'm happy the functionality solved your problem!</span>
  <br>
  <br> <span style="font-family:sans-serif">If you feel there's a lack of documentation and you've got an idea how to improve it I think the best thing to do is to support this documentation with a contribution. This is how I started when I realised something was missing and I suggested to add this or that bit of information. </span>
  <br>
  <br> <span style="font-family:sans-serif">It's easy to sign up on GitHub and make a suggestion. You can't damage anything. Everything will get reviewed and maybe discussed. There's also guidelines in the docs how to contribute. </span>
  <br>
  <br> <span style="font-family:sans-serif">Best regards, Tobias</span>
  <br>
  <div>
   <br>
   <p>22.04.2021 14:09:30 Zac Wang <zacwang15@gmail.com>:</p>
   <blockquote style="">
    <div dir="ltr" style="">
      Hi guys,
     <div style="">
      <br style="">
     </div>
     <div style="">
       Thank you for all your replies. 
     </div>
     <div style="">
      <br style="">
     </div>
     <div style=""> <span style="color:rgb(36,41,46);white-space:pre-wrap;font-size:12px;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;box-sizing:border-box">'qgis</span><span style="color:rgb(36,41,46);white-space:pre-wrap;font-size:12px;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace">.</span><span style="color:rgb(36,41,46);white-space:pre-wrap;font-size:12px;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;box-sizing:border-box">utils</span><span style="color:rgb(36,41,46);white-space:pre-wrap;font-size:12px;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace">.</span><span style="color:rgb(36,41,46);white-space:pre-wrap;font-size:12px;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;box-sizing:border-box">plugins' </span>really resolves my problem.
      <br style="">
     </div>
     <div style="">
      <br style="">
     </div>
     <div style="">
       This issue obsessed me for a few days, and your advice is fantastic.
     </div>
     <div style="">
      <br style="">
     </div>
     <div style="">
       I can't understand why there is no documentation for such a useful functionality.
     </div>
     <div style="">
      <br style="">
     </div>
     <div style="">
       Anyway, thank you for your help. Appreciate it.
     </div>
     <div style="">
      <br style="">
     </div>
     <div style="">
      <br style="">
     </div>
     <div style="">
       Cheers,
     </div>
     <div style="">
      <br style="">
     </div>
     <div style="">
       Zac
     </div>
     <div style="">
      <br style="">
     </div>
    </div>
    <br style="">
    <div class="gmail_quote" style="">
     <div dir="ltr" class="gmail_attr" style="">
       On Thu, 22 Apr 2021 at 22:01, Raymond Nijssen <<a href="mailto:r.nijssen@terglobo.nl" style="">r.nijssen@terglobo.nl</a>> wrote:
      <br style="">
     </div>
     <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
       Hi Zac,
      <br style="">
      <br style=""> You can use:
      <br style="">
      <br style=""> qgis.utils.plugins
      <br style="">
      <br style=""> to get a dictionary with all active plugins.
      <br style="">
      <br style="">
      <br style="">
      <br style=""> To find out if another plugin is available:
      <br style="">
      <br style=""> 'processing' in qgis.utils.plugins
      <br style="">
      <br style="">
      <br style="">
      <br style=""> And use it like:
      <br style="">
      <br style=""> processing_pl = qgis.utils.plugins['processing']
      <br style=""> processing_pl.toolbox.searchBox.setText('overlay')
      <br style="">
      <br style="">
      <br style=""> Hope this helps,
      <br style="">
      <br style=""> Raymond
      <br style="">
      <br style="">
      <br style=""> On 22-04-2021 13:07, Zac Wang wrote:
      <br style=""> > Hi all,
      <br style=""> >
      <br style=""> > Are there some ways to transfer data between different pyqgis plugins? I
      <br style=""> > hope plugins share state.
      <br style=""> >
      <br style=""> > The only way I found is to make pluginA to be a child component of
      <br style=""> > QgisApp(iface.mainWindow()).
      <br style=""> >
      <br style=""> > Then in another pluginB, call findChild() to get the object(pluginA) and
      <br style=""> > connect its signal.
      <br style=""> >
      <br style=""> > This is a possible solution, but it's not easy to maintain because
      <br style=""> > plugins are not initiated in the same file.
      <br style=""> >
      <br style=""> > Is there a better solution?
      <br style=""> >
      <br style=""> > Regards,
      <br style=""> >
      <br style=""> > Zac
      <br style=""> >
      <br style=""> > _______________________________________________
      <br style=""> > QGIS-Developer mailing list
      <br style=""> > <a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank" style="">QGIS-Developer@lists.osgeo.org</a>
      <br style=""> > List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank" style="">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
      <br style=""> > Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank" style="">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
      <br style=""> >
      <br style=""> _______________________________________________
      <br style=""> QGIS-Developer mailing list
      <br style=""> <a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank" style="">QGIS-Developer@lists.osgeo.org</a>
      <br style=""> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank" style="">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
      <br style=""> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank" style="">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
      <br style="">
     </blockquote>
    </div>
    <div style="">
      _______________________________________________
     <br style="">QGIS-Developer mailing list
     <br style="">QGIS-Developer@lists.osgeo.org
     <br style="">List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
     <br style="">Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
     <br style="">
    </div>
   </blockquote>
  </div>
 </body>
</html>