Creating a plugin structure with Plugin Builder

A QGIS plugin can be created manually with a simple editor, but the simplest and most complete way to start to create a plugin is to use another Python plugin called Plugin Builder.

Plugin Builder generates the file infrastructure of the plugin, thus avoiding writing repetitive code. Plugin Builder creates only a basic and generic plugin, which can be modified to add specific user functionalities.

It will generate a generic plugin with the following graphical user interface:

Creating a plugin structure with Plugin Builder

This is an almost empty dialog with two buttons. Every piece of this interface can be modified and customized to achieve the plugin's ...

Get Mastering QGIS - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.