Monday 6 February 2017

c++ - Setting up an application in QT Creator that uses QGIS API


I am a 15 year veteran of Java making my first entry in to C++ applications. I have a specific need to develop a desktop application that produces graphics type output as well as displaying embedded maps. It looks like Qt and QGIS API are exactly what I need to get this going.


I have been playing around with Qt Creator and generated several of the tutorials without too much problems. Now I am trying my first Qt project that incorporates the QGIS API. I am really stuck. I can't figure out where the libraries are that contains the QGIS modules. I think I have an idea how to configure the Qt project if I could find QGIS. I found all the .h files but some of what I need just aren't there.


There are some good examples of code that shows how to code with QGIS classes. But I can't find anything that explains how to set the project up. Could someone please help guide me through setting up a project in Qt Creator that will allow me to incorporate the QGIS modules? I have been searching everywhere. Google can be a strange beast. Sometimes you find what you need on the first search. Other times it just never happens.




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...