<div dir="ltr"><div class="gmail_default" style="font-size:small">I just found another issue related to the feature count (in combination with expressions): <a href="https://hub.qgis.org/issues/14758">https://hub.qgis.org/issues/14758</a></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Maybe this feature needs some more love ...</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Best wishes,</div><div class="gmail_default" style="font-size:small">Anita</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 2, 2016 at 8:52 PM, Matthias Kuhn <span dir="ltr"><<a href="mailto:matthias@opengis.ch" target="_blank">matthias@opengis.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    Hi Karolina,<br>
    <br>
    What do you change except for this? setSubsetString?<br>
    <br>
    I guess we could expect this to call layer.triggerRepaint() (no need
    for mapCanvas.Refresh() AFAIK) and the update for the feature cout
    automatically. It's probably a simple matter of connecting some
    slots.<br>
    So it could be considered an upstream issue.<br>
    <br>
    Matthias<div><div class="h5"><br>
    <br>
    <div>On 05/02/2016 08:28 PM, Caroline
      Alexiou wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">Hello Richard,
        <div>Yes feel free to add this to the issues. I do call</div>
        <div>iface.mapCanvas().refresh()<br>
        </div>
        <div>and</div>
        <div>layer.triggerRepaint()</div>
        <div><br>
        </div>
        <div>every time the time is refreshed, so if this doesn't
          refresh the feature count, then that means refreshing the
          feature count needs another QGIS API call. If anybody knows
          this off the top of their heads, please let me know.</div>
        <div><br>
        </div>
        <div>Bests,</div>
        <div>Karolina</div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
Qgis-developer mailing list
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre><span class="HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="HOEnZb"><font color="#888888">
    <br>
    <pre cols="72">-- 
Matthias Kuhn
OPENGIS.ch - <a href="https://www.opengis.ch" target="_blank">https://www.opengis.ch</a>
Spatial • (Q)GIS • PostGIS • Open Source</pre>
  </font></span></div>

<br>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br></blockquote></div><br></div>