Developing CPP plugins

Preparing the Environment and Setting up the Repo

Go to the QGIS repository in Github at Make a Fork for yourself. Learn more about forking and keeping your repo in sync with the main development repo at Clone your personal copy of the repository to your system, and add upstream as mentioned in above provided link Read the about setting up the installation environment and make a compilation with ccache enabled.

Setting up the Plugin Directory

Inside the QGIS folder:

cd src/plugins/

Now follow the instructions in the screen wizard to create a folder for your plugin. After the required input is given, a folder for the plugin is created. Read the README inside the plugin folder to create a plugin.

Building QGIS now will also build your plugin. After starting QGIS enable the plugin to see it and show it’s dialog.