Start the Plugin Builder
plugin and fill necessary inputs. In the
first step, we are going to specify name of Python class, module name,
short description, etc.
Warning
Don't use .py
(or any extensions) in the module name.
In the next screen, fill longer description of the plugin.
In the next screen, set visual appearance of the plugin. We will use Tool button with dock widget.
There are three options:
- Tool button with dialog
- Tool button with dockwidget
- Processing provider (see :skoleni:`QGIS Advanced course <qgis-pokrocily/geoprocessing/index.html>`)
In the next step, we shell check all the metafiles, the builder will generate for us. We shall leave all checked.
In the next step fill important URLs which is important for later publication of a plugin.
In the last step, we pick the location of the newly created plugin. You can pick any location in your computer.
Note
Avoid paths containing non-ascii characters.
Final screen shows summary of the new plugin and QGIS environment settings as well as the next required steps.
Important information are:
- Location of the newly created plugin
- Default location of all QGIS plugins
- Implementation file is called :file:`save_views.py`
- GUI modification shall happen in Qt Designer using the :file:`save_views_dialog_base.ui` file
- Next step is to use :program:`pb_tool` for the plugin management
There is also information about folders, where QGIS is looking for installed plugins. On Linux, this typically is :file:`$HOME/.local/share/QGIS/QGIS3/profiles/default/python/plugins`. On MS Windows it may be :file:`%APPDATA%\\Roaming\\QGIS\\QGIS3\\profiles\\default\\python\\plugins`.