[QGIS-Developer] Get data from QgsFieldExpressionWidget (QGIS Master)

matteo matteo.ghetta at gmail.com
Mon Jun 26 07:47:56 PDT 2017


Thanks Tom, sure I'll have a look..

In the meanwhile, I get this idea as a workaround:

vl = iface.activeLayer()

request = QgsFeatureRequest().setFilterExpression(' PH > 7 ')
request.setSubsetOfAttributes([])

data = []
for f in vl.getFeatures(request):
    for j in f.attributes():
        if j is not None:
            data.append(j)


it seems working, but it'd be great to have some feedbacks from you
experts ;)

Thanks again guys!

Matteo


More information about the QGIS-Developer mailing list