Is there a reference guide for QGIS 3 plugins?

Is there a reference guide for QGIS 3 plugins?

This tutorial is part of our QGIS tutorial series: This blog is a reference guide to QGIS 3 plugin lingo and explains important concepts. It’s mostly based on output of Plugin Builder 3, which is very useful for generating the necessary boiler plate code. However, it’s hard to decipher all the hidden meanings of the code it supplies.

Which is the framework used to write QGIS?

QGIS itself is written using the Qt framework. For plugin development, we will use an application called Qt Creator to design the interface for our plugin. Download and install the Qt Creator software from SourgeForge

How to deploy a QGIS plugin in Python?

Since you usually won’t work in the native QGIS plugin path, there’s a few extra steps to deploy the plugin so that QGIS recognizes it and you see changes you make along the development. It’s enough to create a symbolic link from your dev environment to the QGIS Python Plugin directory:

Is there a virtual environment for QGIS 3?

Under Linux (and presumably Mac OS), QGIS 3 utilizes the system Python3 executable and installs all needed libraries in its PYTHONPATH. Usually, it’s not practical to use virtual environments for QGIS plugins.

Where to find pyhon bindings in QGIS install?

Relevant pyhon bindings are included in the QGIS install on Windows. But to use them from the plugin folder, we need to indicate the path to the QGIS install. Create a Windows Batch file (.bat extension) with the following content and save it on your computer as compile.bat. We will later copy this file to the plugin folder.

Where can I find Bug Tracker for QGIS plugins?

A plugin’s bug tracking system can be found on the information page for that plugin. If no information is available, please report it to the Developer mailing-list. The pyQGIS cookbook contains a section on developing plugins and is an ongoing effort to collect tips and tricks about QGIS python programming generaly.

Which is the graphical user interface for QGIS?

The QGIS graphical user interface (GUI) is shown in the figure below (the numbers 1 through 5 in yellow circles indicate important elements of the QGIS GUI, and are discussed below). Your window decorations (title bar, etc.) may appear different depending on your operating system and window manager.

What is a qdialog in QGIS 3 plugin?

QDialog: a QWidget which will represent your plugin window ( not the UI elements themselves). FORM_CLASS: loads your UI file into a class. The MyPluginDialog class will be instantiated in the main my_plugin.py module.

What happens when you restart the QGIS GUI?

When you restart QGIS, the key is written again with the default state, and all toolbars are visible again. The map legend area lists all the layers in the project. The checkbox in each legend entry can be used to show or hide the layer.