1

I want to use the represent value from a field of a feature.

I tried something like this but I get no result:

valuerepresent = QgsListFieldFormatter().representValue(layer=currentMapLayer,
                                                        fieldIndex=fieldidx,
                                                        config={},
                                                        cache=None,
                                                        value=value)

1 Answer 1

1

I'm clearly not familiar with this particular class QgsListFieldFormatter in the API. You should look at Python official test file test_qgsfieldformatters.py to sort out what you want.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.