[Qgis-developer] Questions about QgsEditorWidgetWrapper value() / setValue()

Matthias Kuhn matthias at opengis.ch
Fri Apr 22 08:05:15 PDT 2016


Hi Even

On 22/04/16 16:32, Even Rouault wrote:
>> Thanks, that make sense. And it is actually implemented by
>> QgsRelationReferenceWidgetWrapper.
> Arg, I meant QgsValueRelationWidgetFactory. It is *not* by
> QgsRelationReferenceFactory, hence my question about the appropriatness of
> doing so.
>
Yes, sounds reasonable to me. And I think it would also make sense to 
implement a shorthand QgsEditorWidgetWrapper::displayValue() for this 
functionality.
That's where one would expect such a method and it reduces boilerplate 
code, the best demonstration for this is this thread I guess.

Matthias


More information about the Qgis-developer mailing list