Problem on rendering categorizedSymbolRendererV2

المشرف العام

Administrator
طاقم الإدارة
Finally my code works but the renderering display just one color instead of 4 I don't know why, I follow the sample code of the snorf.net website and the sample code in the qgis python programming cookbook but for a specific vectorlayer i had to display 4 differents blues, but I have only one

here is the code i use :

for(int i = 0 ; i < lListValue.size() ; i++) { QgsSymbolV2* newsymbol = QgsSymbolV2::defaultSymbol(QGis::polygon ); newsymbol->setColor(QColor(MyColor.at(i))); qDebug()
 
أعلى