<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
I'm developing a plug-in in which I would like to edit the symbol
levels for controlling rendering order of the vector layer
symbology.<br>
<br>
With this code I can switch the symbol levels feature on and off,
and the GUI confirms it:<br>
>>> renderer = qgis.utils.iface.activeLayer().rendererV2()<br>
<meta charset="utf-8">
>>> renderer.setUsingSymbolLevels(True)<br>
>>> renderer.usingSymbolLevels()<br>
True<br>
>>> renderer.setUsingSymbolLevels(False)<br>
>>> renderer.usingSymbolLevels()<br>
False<br>
<br>
However, I haven't figured out how to set the value of the
individual levels... The QgsFeatureRendererV2 class doesn't seem to
have appropriate methods.<br>
<br>
There's also this class:<br>
QgsSymbolV2LevelItem (QgsSymbolV2 *symbol, int layer)<br>
But I'm not sure if it relates to the above levels or to symbol
layers (something different).<br>
<br>
Any help greatly appreciated.<br>
<br>
Thanks,<br>
Jorge<br>
<div class="moz-signature">
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<span style="font-size:8.5pt;
color:rgb(210,62,40);font-family:Arial,sans-serif">
________________________________________</span></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<font class="Apple-style-span" face="Arial,sans-serif" size="2"><b>Jorge
Gil</b></font></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<span class="Apple-style-span" style="font-size:11px;
font-family:Arial,sans-serif">Research Associate</span></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<span class="Apple-style-span" style="font-size:11px;
font-family:Arial,sans-serif">Bartlett School of Graduate
Studies</span></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<font class="Apple-style-span" face="Arial,sans-serif" size="2"><br>
</font></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<a href="http://www.bartlett.ucl.ac.uk/graduate" style="color:
blue; text-decoration: underline; "><b>
<span style="font-size: 8.5pt; color: rgb(210, 62, 40);
font-family: Arial, sans-serif; ">The Bartlett School of
Graduate Studies</span>
</b></a><b><u><span style="font-size: 8.5pt; color: rgb(210,
62, 40); font-family: Arial, sans-serif; "><o:p></o:p></span></u></b></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<span style="font-size:8.5pt; font-family:Arial,sans-serif">UCL
Faculty of the Built Environment</span></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<span style="font-size:8.5pt; font-family:Arial,sans-serif"><br>
</span></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<font class="Apple-style-span" face="Arial,sans-serif" size="2">
<span class="Apple-style-span" style="color: rgb(128, 128,
128); font-family: Arial; font-size: 10px; ">
<a href="mailto:jorge.gil@ucl.ac.uk" style="font-family:
Helvetica; color: red; text-decoration: underline; ">jorge.gil@ucl.ac.uk</a></span></font></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<span style="font-size:8.5pt; font-family:Arial,sans-serif">+4420
3108 9031 (Internal x89031)</span></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<span style="font-size:8.5pt; font-family:Arial,sans-serif"><br>
</span></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<span style="font-size:8.5pt; font-family:Arial,sans-serif">Central
House,</span></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<span style="font-size:8.5pt; font-family:Arial,sans-serif">14
Upper Woburn Place,</span></p>
<p class="MsoNormal" style="margin-top: 0cm; margin-right: 0cm;
margin-left: 0cm; margin-bottom: 0.0001pt">
<span style="font-size:8.5pt; font-family:Arial,sans-serif">London
WC1H 0NN</span></p>
</div>
</body>
</html>