Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 28443

An object-oriented programming language

0 votes

Load a layer in qgis with c++

You haven't initialized the QGIS application. Try replacing QgsApplication app(argc, argv, true); with QgsApplication app(argc, argv, true); QgsApplication::initQgis(); The initQgis step is re …
ndawson's user avatar
  • 27.9k
1 vote
Accepted

QGis Standalone App access to maptools defined in app directory

Anything in the "app" library is not exposed as public API - it generally just contains the non-reusable portions of GUI and GUI logic, and accordingly isn't a stable api and changes between releases. …
ndawson's user avatar
  • 27.9k
7 votes

Improving QGIS source code efficiency?

There's no inefficiency here. They are only c++ pointers to the same layer instance -- it's not two instances in separate memory of the same map layer.
ndawson's user avatar
  • 27.9k
4 votes
Accepted

QGIS CPP multi-platform plugin deployment

It's generally discouraged to write c++ QGIS plugins, for the following reasons: They can't be distributed via the plugin library (only python plugins with no binary dependencies are accepted) The c …
ndawson's user avatar
  • 27.9k
0 votes

Setting up rulebased labelling programmatically in QGIS?

It's not possible yet - the relevant methods and classes aren't exposed to the python API. This will be addressed when 3.0 is released.
ndawson's user avatar
  • 27.9k
2 votes
Accepted

Correct Qt version to build QGIS master

Anything >= 5.5 should work. But: there's major bugs in qt 5.6, so avoid that one QGIS 3D requires qt >= 5.9 I'd suggest avoiding the very latest qt release, as occasionally there's build issues wit …
ndawson's user avatar
  • 27.9k
1 vote

Difficulties working with QGIS 3.4 API

You may be looking for https://qgis.org/api/api_break.html - this is the official documentation regarding API which changed between versions 2 and 3.
ndawson's user avatar
  • 27.9k