Information about the setDataDefinedProperty

المشرف العام

Administrator
طاقم الإدارة
In the QGis C++ API v1.6 there is a function called setlowerValue to set a value for a specific Symbol

In my application i use QGis C++ API 2.8.2, i try to understand how the function setDataDefinedProperty works ?Is it the same ?In my application I have a list of symbol corresponding to a depth of the sea and a specific color, I want to categorized that

How can i porceed in 2.8.2 ?Here is my code :

lrenderer = QgsFeatureRendererV2::defaultRenderer( QGis::polygon );QList lSymbols = lrenderer->symbols();QList lSymbolsToRender = lrenderer->symbols();QStringList lListValue;lListValue setDataDefinedProperty("Value",lListValue.at(i)); //newsymbol->setLowerValue( QString::number(i) ); // Version 1.6 old code //((QgsSingleSymbolRendererV2*)lrenderer)->insertValue( lListValue.at(i), newsymbol ); // Version 1.6 old code newsymbol->insertSymbolLayer(lListValue.at(i).toInt(), lSymbolLayer); lSymbolsToRender.append(newsymbol);}There is no information in the API DOC onLine



أكثر...
 
أعلى