35 | Another Cookbook
36 | 37 |QGIS uses the Qt Project 38 | as the main GUI building block. Both projects have C++ intefaces. Given that, 39 | it is surprising the QGIS community does not have a good tutorial on building plugins 40 | in the native interface ( see the next section for a guess why ):
41 | 42 |-
43 |
- 45 |
Existing code examples ( that are not core C++ plugins themselves ) are old 46 | and don't cover the new QGIS 2.0 API ( here )
47 |
48 | Should I Build QGIS Plugins in Python or C++?
49 | 50 |Probably Python. The QGIS community has put a lot of effort into documenting how to build Python 51 | plugins. One benefit of using Python is that you don't have to deal with all the different operating 52 | systems, build enviroments and plugin distribution.
53 | 54 |That said, if you are a C++ programmer and learning Python seems boring, then this 55 | tutorial will show you how to become familiar with the API basics. You can deal 56 | with the distribution issues on your own.
57 | 58 |59 | How to Use the Cookbook
60 | 61 |Go over to this repo's example plugins
62 | directory and go into 01_hello_world
. Then read the README
and get hacky.
65 | How to Contribute to the Cookbook
66 | 67 |DISCLAIMER: Most of the recipes on here only cover
68 | building tools with gcc on Ubuntu Linux
69 | so go read about how to build on other environemnts
70 | Then make examples for everyone here!
71 |
-
74 |
clone the repo
75 | install node
76 | get coffee
77 | make shit
78 | more to come
79 |
80 | Current Plugin Tutorials
81 | 82 |-
83 |
Hello World(
qmake
versuscmake
workflows )
84 | - 85 |
- 86 |
- 87 |
Map Tool Driller ( part 4 )
88 |
89 | Authors and Contributors
90 | 91 |Greg Corradini ( @thebigspoon ) and James Dominguez ( @keppy )
92 | 93 |94 | Support or Contact
95 | 96 |Drop it like it's hot on the issue page over here
97 |