how to fill a symbolLayer with a custom texture

المشرف العام

Administrator
طاقم الإدارة
i have this code : pLayer is a QgsVectorLayer *

QgsFeatureRendererV2 * lrenderer = pLayer->rendererV2();QList lSymbols = lrenderer->symbols();QgsSymbolLayerV2 * MySymbolLayer = lSymbols.at(0)->symbolLayer(0);MySymbolLayer->setColor( QColor(90,90,90));MySymbolLayer->setFillColor(QColor(90,90,90));but how can i use the SetCustomTexture or setLineStyle from the 1.8 QGis Version , i want to fill the fill polygon with a specific texture or to define a type of line like DashLine

but i don't find the way to do it in C++ API Qgis 2.8.2 for my application

thanks



أكثر...
 
أعلى