[Qgis-developer] Plugin howto

Alexander Bruy alexander.bruy at gmail.com
Wed Jul 23 23:10:06 PDT 2014


Hi Paolo,

there is a some pieces of information in CookBook [0], but it
does not contains code samples. I will try to add them today.

All necessary methods one can find in QgisInterface class [1],
just search for "addPlugin*" and "removePlugin*". There are:
 - addPluginToMenu
 - addPluginToDatabaseMenu
 - addPluginToRasterMenu
 - addPluginToVectorMenu
 - addPluginToWebMenu
and corresponding remove* methods. Same with adding/removing
toolbar buttons.

Hope this helps

[0] http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/plugins.html
[1] http://qgis.org/api/classQgisInterface.html

2014-07-24 8:58 GMT+03:00 Paolo Cavallini <cavallini at faunalia.it>:
> Hi all.
> Many plugin developers do not know how to move their plugin under the appropriate
> menu: can someone point us to the relevant cookbook page, or other instructions?
> All the best, and thanks.
> --
> Paolo Cavallini - www.faunalia.eu
> Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer



-- 
Alexander Bruy


More information about the Qgis-developer mailing list