Why I have a SegFault on a newSymbol->setColor?

المشرف العام

Administrator
طاقم الإدارة
I am working in C++ and QT, I have to write an application based on the qgis c++ api 2.8.2.So, I try to do the same thing that the sample code in python on the webSitehttp://snorf.net/blog/2014/03/04/symbology-of-vector-layers-in-qgis-python-plugins/there is a small sample in the Categorized symbol rendererbut I don't understand pyhton

What i have to do is, read a S57 file (i.e map.000), there is a sea and i want to renderer the different depth of it by differnet blue light blue is level 0, and dark blue is 10 feet depth.


So I write this code : lrenderer = QgsFeatureRendererV2::defaultRenderer( QGis::polygon ); QList lSymbols = lrenderer->symbols(); QList lSymbolsToRender = lrenderer->symbols(); QStringList lListValue; lListValue
 
أعلى