[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 ')

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

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

Thanks again guys!


More information about the QGIS-Developer mailing list